A collection of fun and engaging browser-based mini games built with vanilla HTML, CSS, and JavaScript.
Test your memory skills by matching pairs of emoji cards. Flip cards to find matching pairs and complete the game in the fewest moves possible!
Features:
- 16 cards with 8 matching pairs
- Move counter and timer
- Animated card flipping effects
- Victory celebration
- Responsive design for all devices
Test your memory with this classic sequence game. Watch the pattern of colors and repeat it back to advance through levels.
Features:
- 4 colored buttons with unique sounds
- Progressive difficulty with longer sequences
- Score tracking with local best score
- Smooth animations and visual feedback
- Eye-friendly color palette
Test your reflexes in this classic arcade game! Click the moles as they pop up from their holes before time runs out.
Features:
- 3x3 grid with animated mole holes
- 30-second time limit with visual progress bar
- Increasing difficulty as score grows
- Score tracking with local best score
- Sound effects and hit animations
- Responsive design for mobile devices
Classic strategy game where you try to get three in a row! Play against AI or challenge a friend locally.
Features:
- Two game modes: vs AI or vs Human
- Three AI difficulty levels (Easy, Medium, Hard)
- Unbeatable Hard mode using minimax algorithm
- Score tracking across multiple games
- Winning line highlighting with animations
- Sound effects for moves and victories
The addictive sliding puzzle game! Combine numbered tiles to reach the elusive 2048 tile.
Features:
- Classic 4x4 grid gameplay
- Smooth sliding animations
- Score tracking with best score persistence
- Undo functionality for strategic play
- Touch-friendly swipe controls for mobile
- Auto-save game state
- Sound effects for moves, merges, wins, and game over
- Mute/unmute toggle button
Solve beautiful sliding picture puzzles! Move pieces around to complete stunning gradient artworks.
Features:
- Two difficulty levels: 3×3 Easy and 4×4 Hard
- 5 beautiful gradient picture themes
- Visual hints showing movable pieces
- Picture preview functionality
- Move counter and timer
- Complete picture reveal on win
- Kid-friendly design with encouraging feedback
Exercise your logic skills with this colorful, kid-friendly Sudoku game! Perfect for introducing children to number puzzles.
Features:
- Three difficulty levels: Beginner (3×3), Easy (4×4), and Classic (9×9)
- Kid-friendly design with bright colors and encouraging feedback
- Timer to track solving progress
- 3 hints available per puzzle
- Touch-friendly number pad for easy input
- Visual feedback for correct and incorrect moves
- Sound effects with mute/unmute option
- Auto-generated puzzles with guaranteed solutions
Visit the live collection at: https://alittl.fun/
- Frontend: HTML5, CSS3, JavaScript (ES6+)
- Styling: CSS Grid, Flexbox, CSS Animations
- Deployment: GitHub Pages via GitHub Actions
-
Clone the repository:
git clone https://github.com/b1n9s/minigames.git cd minigames -
Open
src/index.htmlin your browser to view the game collection, or open individual game files directly. -
No build process required - pure vanilla web technologies!
minigames/
├── src/
│ ├── index.html # Home page with game collection
│ ├── flips.html # Memory Flip Game
│ ├── sequence.html # Sequence Game
│ ├── whack.html # Whack-a-Mole Game
│ ├── tictactoe.html # Tic-Tac-Toe Game
│ ├── 2048.html # 2048 Sliding Numbers Game
│ ├── puzzle.html # Sliding Picture Puzzle Game
│ ├── sudoku.html # Sudoku Number Puzzle Game
│ └── favicon.svg # Site favicon
├── .github/
│ └── workflows/
│ └── deploy.yml # GitHub Pages deployment
└── README.md
- Create a new HTML file for your game in the
srcfolder (e.g.,src/newgame.html) - Add a game card to
src/index.htmlin the games grid - Follow the existing styling patterns for consistency
The project uses GitHub Actions for automatic deployment to GitHub Pages:
- Triggers on pushes to the
mainbranch - Automatically injects Google Analytics tags if configured
- Deploys optimized files to GitHub Pages
- No build process needed
- Go to your repository Settings → Pages
- Set source to "GitHub Actions"
- The workflow will automatically deploy on the next push
To add Google Analytics tracking without modifying your source files:
- Go to your repository Settings → Secrets and variables → Actions
- Click on the "Variables" tab
- Add a new repository variable:
- Name:
GA_MEASUREMENT_ID - Value: Your Google Analytics Measurement ID (e.g.,
G-XXXXXXXXXX)
- Name:
The deployment workflow will automatically inject the Google Analytics tracking code into all HTML files during deployment, while keeping your source files clean.
Where to find your Google Analytics Measurement ID:
- Go to Google Analytics
- Select your property
- Go to Admin → Data Streams
- Click on your web stream
- Copy the Measurement ID (starts with
G-)
- Fork the repository
- Create a feature branch:
git checkout -b feature/new-game - Commit your changes:
git commit -m 'Add new game' - Push to the branch:
git push origin feature/new-game - Open a Pull Request
- Use consistent color schemes across games
- Implement responsive designs for mobile compatibility
- Include smooth animations and transitions
- Follow accessibility best practices
- Keep games lightweight and fast-loading
- Chrome (recommended)
- Firefox
- Safari
- Edge
- Mobile browsers
This project is open source and available under the MIT License.
Built with ❤️ using vanilla web technologies