A collection of fun and interactive games built with modern web technologies and Python! ๐ฏ
Play all games together on our live website: https://web-games-collection.onrender.com ๐
๐ฎ Games Overview โข ๐ Quick Start โข ๐ฏ Game Details โข ๐ ๏ธ Installation โข ๐ค Contributing
This repository contains 20 exciting games that you can play right in your browser or on desktop:
| Game | Type | Tech | Players | Status |
|---|---|---|---|---|
| ๐ฒ Number Guessing | Python CLI | Python 3 | 1 | โ Ready |
| ๐ฒ Ludo Game | Browser Game | HTML/CSS/JS | 2-4 | โ Ready |
| ๐ Snake & Ladder | Browser Game | HTML/CSS/JS | 1-4 | โ Ready |
| ๐ชฑ Worm Game | Browser Game | HTML/CSS/JS | 1 | โ Ready |
| ๐ฆ Flappy Bird | Browser Game | HTML/CSS/JS | 1 | โ Ready |
| โ๏ธ Rock Paper Scissors | Browser Game | HTML/CSS/JS | 1 | โ Ready |
| ๐จ Image Playground | Browser Game | HTML/CSS/JS | 1 | โ Ready |
| ๐งฑ Tetris | Browser Game | HTML/CSS/JS | 1 | โ Ready |
| ๐ป Pac-Man | Browser Game | HTML/CSS/JS | 1 | โ Ready |
| ๐ Memory Card | Browser Game | HTML/CSS/JS | 1 | โ Ready |
| โ Tic Tac Toe | Browser Game | HTML/CSS/JS | 2 | โ Ready |
| ๐ Maze Game | Browser Game | HTML/CSS/JS | 1 | โ Ready |
| ๐ Hangman | Browser Game | HTML/CSS/JS | 1 | โ Ready |
| ๐ Space Invaders | Browser Game | HTML/CSS/JS | 1 | โ Ready |
| ๐งฑ Brick Breaker | Browser Game | HTML/CSS/JS | 1 | โ Ready |
| ๐จ Whack-a-Mole | Browser Game | HTML/CSS/JS | 1 | โ Ready |
| ๐ฐ Castle Defenders | Browser Game | HTML/CSS/JS | 1 | โ Ready |
| ๐ UNO Card Game | Browser Game | HTML/CSS/JS | 2-4 | โ Ready |
| ๐๏ธ Skyline Sprint | Browser Game | HTML/CSS/JS | 1 | โ Ready |
- Navigate to the game folder
- Double-click the
.htmlfile - Start playing! ๐ฎ
- Navigate to
Game1/ - Run:
python main.py - Start guessing! ๐ฏ
๐ Location: Game1/
A simple and fun Python game where you try to guess a randomly generated number between 1 and 100!
- Run the game:
python main.py
- The computer will generate a random number between 1 and 100
- Enter your guess when prompted
- The game will tell you if your guess is:
- Too high โฌ๏ธ
- Too low โฌ๏ธ
- Correct! ๐ฏ
- Keep guessing until you find the right number
- ๐ข Random number generation
- ๐ค Interactive gameplay
- ๐ก๏ธ Input validation (checks for valid integers)
- ๐ก Helpful hints after each guess
- ๐ Continuous play until correct guess
- Python 3.x
randommodule (included in Python standard library)
- Make sure Python is installed on your system
- Navigate to the game directory:
cd Game1 - Run the game:
python main.py
- The game generates a random number between 1 and 100
- Player inputs their guess
- Game provides feedback:
- "Too high!" if the guess is above the target
- "Too low!" if the guess is below the target
- "Congratulations!" when the correct number is guessed
import random
number_to_guess = random.randint(1, 100)
# Game continues until correct guess- โ Validates numeric input
- โ Gracefully handles non-integer inputs
- ๐ Allows continuous attempts after invalid inputs
- Start with 50 as your first guess
- Use the feedback to narrow down the range
- Keep track of your previous guesses
- Use binary search strategy for optimal guessing
๐ Location: Game2/
A fully functional, browser-based Ludo game with beautiful animations and multiplayer support! Experience the classic board game with stunning visuals and smooth gameplay.
- ๐ฒ Classic Ludo Rules - Authentic Ludo experience with all traditional rules
- ๐ฅ 2-4 Players - Play with 2, 3, or 4 players
- ๐จ Color Selection - Choose your favorite color before starting
- ๐ Unlock Mechanic - Roll a 6 to unlock your pieces from home
- โก Extra Turn on 6 - Get another roll when you hit a 6!
- ๐ฏ Safe Zones - Strategic star positions where pieces can't be captured
- ๐ฅ Capture System - Land on opponents to send them back home
- ๐ Home Stretch - Colored paths leading to victory
- ๐ Win Detection - First player to get all 4 pieces home wins!
- โจ Smooth Animations - Jumping pieces with step-by-step movement
- ๐ Beautiful Gradients - Eye-catching color schemes
- โญ Twinkling Stars - Animated safe zones
- ๐ญ Dice Animation - Realistic rolling dice effect
- ๐ฑ Responsive Design - Perfect on desktop, tablet, and mobile
- ๐ฏ Clear Indicators - Highlighted playable pieces
- ๐ Rotating Center Star - Animated victory zone
- ๐ Touch Controls - Full touch support for mobile devices
- ๐ Adaptive Layout - Scales perfectly to any screen size
- ๐ No Zoom Issues - Optimized viewport settings
- ๐ซ Smooth Touch Animations - Responsive feedback on every tap
Be the first player to move all 4 of your pieces from home, around the board, through the home stretch, and into the center finish area!
Starting the Game
- Select the number of players (2, 3, or 4)
- Each player chooses their color (Red, Green, Yellow, or Blue)
- Click "Start Game" to begin
- Players take turns rolling the dice
Moving Pieces
๐ Unlocking Pieces
- All pieces start in their home area (colored corners)
- You must roll a 6 to unlock your first piece
- Rolling a 6 allows you to move a piece from home to your starting position
- After at least one piece is on the board, any number works
โก Special Rule: Roll Again on 6
- Whenever you roll a 6, you get an extra turn!
- This works throughout the entire game, not just at the start
- Use this strategically to move faster or unlock more pieces
๐ฏ Moving Around the Board
- Click/tap your dice to roll
- Clickable pieces will be highlighted with a golden glow
- Select which piece to move
- Pieces move step-by-step with jumping animation
- Each color follows a specific path around the board
โญ Safe Zones
- Star-marked positions are safe zones
- Pieces on stars cannot be captured
- Use these for strategic positioning
๐ฅ Capturing Opponents
- Landing on an opponent's piece (not on a star) captures it
- Captured pieces return to their home area
- They must roll a 6 again to re-enter
๐ Home Stretch
- After completing a full circuit, enter your colored path
- This leads directly to the center
- You must move exactly into the center (no overshoot)
๐ Winning
- First player to get all 4 pieces into the center wins!
- The game announces the winner with a victory message
Method 1: Quick Start (No Installation Required)
- Download or clone this repository
- Navigate to
Game2/ - Double-click
ludo.html - Start playing! ๐ฎ
Method 2: Using a Local Server (Recommended for Development)
# Using Python 3
python -m http.server 8000
# Using Node.js (if you have http-server installed)
npx http-serverThen open http://localhost:8000/ludo.html in your browser.
| Action | Desktop | Mobile |
|---|---|---|
| Roll Dice | Click "Roll Dice" button | Tap "Roll Dice" button |
| Select Piece | Click on highlighted piece | Tap on highlighted piece |
| Reset Game | Click "Reset Game" button | Tap "Reset Game" button |
| Color | Starting Position | Arrow Direction |
|---|---|---|
| ๐ข Green | Left side of middle cross | โ (Left) |
| ๐ก Yellow | Top side of middle cross | โ (Up) |
| ๐ด Red | Bottom side of middle cross | โ (Up) |
| ๐ต Blue | Right side of middle cross | โ (Left) |
- Spread Your Pieces - Don't keep all pieces together, spread them for better chances
- Use Safe Zones - Plan moves to land on star positions when opponents are nearby
- Capture Wisely - Sometimes it's better to advance than to capture
- Block Opponents - Position pieces strategically to block opponent movements
- Home Stretch Timing - Enter home stretch when you have pieces trailing for support
- Save a Piece - Keep one piece near opponents' starting area for capturing
- 6 Strategy - Use extra turns from rolling 6 to unlock multiple pieces or advance one piece rapidly
| Browser | Supported | Version |
|---|---|---|
| Chrome | โ | 90+ |
| Firefox | โ | 88+ |
| Safari | โ | 14+ |
| Edge | โ | 90+ |
| Opera | โ | 76+ |
Game2/
โโโ ๐ ludo.html # Main HTML file
โโโ ๐จ ludo.css # Styles and animations
โโโ โ๏ธ ludo.js # Game logic and mechanics
โโโ ๐ README.md # Game documentation
๐ Location: Game3/
A classic Snake and Ladder game built with modern web technologies! Experience the beloved board game with beautiful design and smooth animations.
- ๐ฒ Classic Snake and Ladder gameplay
- ๐ฏ Interactive dice rolling
- ๐ถ Smooth piece movement animations
- ๐จ Beautiful board design with numbered squares
- ๐ Animated snakes that slide players down
- ๐ช Ladders to climb up for quick advancement
- ๐ฎ Easy-to-use controls
- ๐ฑ Mobile-friendly design
- ๐ฏ Win detection and celebration
- ๐ Restart game option
Be the first player to reach square 100 by rolling the dice and using ladders to climb up while avoiding snakes!
-
Start the Game
- Open
snake_ladder.htmlin your web browser - Choose the number of players
- Click "Start Game" to begin
- Open
-
Game Rules
- Players take turns rolling the dice
- Move your piece according to the dice number
- Land on a ladder to climb up โฌ๏ธ
- Land on a snake head to slide down โฌ๏ธ
- First player to reach square 100 wins! ๐
-
Controls
- Click/Tap the dice to roll
- Pieces move automatically based on dice value
- Follow on-screen instructions for your turn
- 10ร10 grid (100 squares)
- Numbered squares for easy tracking
- Colorful design for better visibility
- Strategic snake and ladder placements
- Random dice rolls (1-6)
- Automatic piece movement
- Turn-based gameplay
- Clear player indicators
- Win condition detection
- Smooth animations
- Responsive design
- Clear visual feedback
- Easy-to-read numbers
- Player position indicators
-
Download the Files
- Download all three files:
snake_ladder.htmlsnake_ladder.csssnake_ladder.js
- Download all three files:
-
Run Locally
- Keep all files in the same folder
- Double-click
snake_ladder.htmlto open in browser - No server required - runs offline!
-
Host Online
- Upload files to any web hosting
- Or use GitHub Pages for free hosting
- โ Desktop Chrome, Firefox, Safari, Edge
- โ Mobile browsers
- โ Tablets
- โ Touch-screen devices
- โ Responsive design adapts to screen size
- Pure HTML5/CSS3/JavaScript
- No external dependencies
- Lightweight and fast-loading
- Cross-browser compatible
- Mobile-responsive design
You can customize the game by modifying:
- Board colors in CSS
- Snake and ladder positions in JavaScript
- Number of players
- Board size
- Animation speeds
Game3/
โโโ ๐ snake_ladder.html # Main HTML file
โโโ ๐จ snake_ladder.css # Styles and animations
โโโ โ๏ธ snake_ladder.js # Game logic and mechanics
โโโ ๐ README.md # Game documentation
๐ Location: Game4/
A fun and addictive browser-based Worm game with smooth animations! Guide your worm to eat food and grow longer without colliding with walls or yourself.
- ๐ฎ Classic worm/snake gameplay
- ๐ฏ Progressive difficulty levels
- ๐จ Colorful, vibrant graphics with animations
- ๐ Bonus food with time-slow power-up
- โฑ๏ธ Time manipulation mechanics
- ๐ฑ Mobile-friendly controls
- ๐ Score tracking and level system
- โจ๏ธ Keyboard controls (Arrow Keys / WASD)
- ๐ญ Smooth animations and visual effects
- ๐ฎ Play/Pause functionality
Guide your worm to eat food and grow longer without colliding with the walls or yourself!
-
Movement
- Use arrow keys or WASD to control the worm
- The worm continuously moves in the current direction
- Change direction using keyboard controls
-
Eating Food
- Worms grow when they eat red food (๐)
- Each red food increases your score by 10 ร Level
- Bonus golden food (โญ) grants time-slow ability for 5 seconds
- Bonus food awards 50 ร Level points
- New food appears randomly after being eaten
-
Power-ups
- โญ Bonus Food (Golden Star) - Activates time-slow mode
- When collected, the game slows down 2x for 5 seconds
- Appears randomly (15% chance) after eating regular food
- Perfect for dodging tight situations!
-
Collision
- Avoid hitting the walls of the game area
- Don't collide with your own body
- Game ends on collision
-
Difficulty
- Game speed increases as you level up (every 5 foods eaten)
- Longer worms are harder to control
- Challenge yourself for high scores!
| Action | Key |
|---|---|
| Move Up | โ or W |
| Move Down | โ or S |
| Move Left | โ or A |
| Move Right | โ or D |
| Pause/Resume | P |
| Start Game | Click "Start Game" button |
| Restart | Click "Restart Game" button |
Method 1: Quick Start (No Installation Required)
- Download the files
- Navigate to
Game4/ - Double-click
index.html - Start playing! ๐ฎ
Method 2: Using a Local Server
# Using Python 3
python -m http.server 8000
# Using Python 2
python -m SimpleHTTPServer 8000
# Using Node.js
npx http-serverThen open http://localhost:8000/index.html in your browser.
| Element | Description | Points |
|---|---|---|
| ๐ Worm | Your player character that grows with each food | - |
| ๐ Red Food | Regular food to collect and grow | 10 ร Level |
| โญ Golden Food | Bonus food that slows time for 5 seconds | 50 ร Level |
| โฌ Walls | Game boundaries - don't touch! | Game Over |
| ๐ Score | Track your current score | Increases per food |
| ๐๏ธ Level | Current difficulty level (increases every 5 foods) | - |
| ๐ Length | Current worm length | - |
Beginner Tips (Score: 50-150)
- Start with slow, deliberate movements
- Plan your routes before moving
- Keep the worm in the middle of the board
- Learn basic turning mechanics
- Focus on survival first, scoring second
Intermediate Tips (Score: 150-500)
- Create efficient paths to collect food
- Maintain 3-4 segments distance from walls
- Adapt to speed increases at each level
- Start collecting bonus foods
- Use time-slow strategically
Advanced Tips (Score: 500+)
- Master the spiral technique for maneuvering
- Hunt bonus foods efficiently
- Optimize time-slow usage
- React within 100-150ms at high speeds
- Plan 3-4 moves ahead
Bonus Food Strategy
- Hunt when worm is short (3-8 segments)
- Skip when worm is long (15+ segments)
- Collect before entering dangerous areas
- Use time-slow to escape tight situations
Time-Slow Power-Up Optimization
- Collect before danger appears
- Chain collection of 2-3 foods during slow
- Navigate tight corners safely
- Create separation from your body
- Reposition for better angles
Game doesn't load?
- Make sure all files are in the same directory
- Check browser console for errors (F12)
- Try a different browser
Controls not working?
- Make sure the game window is focused
- Try arrow keys or WASD alternatively
- Restart browser if needed
Performance issues?
- Close other browser tabs
- Update your browser
- Try a different browser
| Browser | Supported | Version |
|---|---|---|
| Chrome | โ | 90+ |
| Firefox | โ | 88+ |
| Safari | โ | 14+ |
| Edge | โ | 90+ |
| Opera | โ | 76+ |
Game4/
โโโ ๐ index.html # Main HTML file with UI
โโโ ๐จ worm.css # Styling and animations
โโโ ๐ง worm.js # Game logic and mechanics
โโโ ๐ README.md # Game documentation
- Additional power-ups (speed boost, shield, etc.)
- Multiple game modes (Classic, Endless, Timed)
- Obstacle-filled levels
- Sound effects and background music
- Leaderboard system with local storage
- Different worm skins and themes
- Level progression with unique challenges
- Difficulty settings (Easy, Normal, Hard)
- Multiplayer mode
- Mobile app version
๐ Location: Game14/
A classic arcade shooter where you defend Earth from waves of alien invaders! Experience the nostalgia of one of gaming's most iconic titles, reimagined with modern web technologies.
- Open
index.htmlin your browser - Click "START GAME" button
- Use arrow keys to move your ship left and right
- Press SPACEBAR to shoot bullets at the aliens
- Destroy all aliens to advance to the next level
- Protect your ship and don't let aliens reach the bottom!
๐ฎ Classic Arcade Gameplay
- ๐ธ 5 rows of aliens - Different types worth 10, 20, and 30 points
- ๐พ Progressive difficulty - Game speeds up as you eliminate aliens
- ๐ฏ Level system - Complete waves to advance through levels
- โค๏ธ Lives system - 3 lives to defend Earth
- ๐ธ Mystery ship - Bonus ship worth 100 points appears randomly
- ๐ก๏ธ Defensive barriers - 4 barriers that absorb damage
๐จ Visual Excellence
- Retro aesthetic with modern CSS effects
- Animated starfield background
- Smooth animations for all elements
- Glowing effects and explosions
- Color-coded aliens with emoji graphics
๐ Scoring System
- Bottom Aliens ๐พ: 10 points
- Middle Aliens ๐ธ: 20 points
- Top Aliens ๐ฝ: 30 points
- Mystery Ship ๐ธ: 100 points
๐ฑ Mobile Support
- Touch controls - Tap to shoot
- Swipe to move ship
- Responsive design for all devices
Desktop:
โโArrow Keys - Move ship left/rightSPACE- Shoot bulletsP- Pause/Resume game
Mobile:
- Tap screen - Shoot
- Swipe left/right - Move ship
| Element | Description | Effect |
|---|---|---|
| ๐ Player Ship | Your defense against invasion | Control with arrows |
| ๐พ๐ธ๐ฝ Aliens | Three types of invaders | 10-30 points each |
| ๐ธ Mystery Ship | Bonus ship at top | 100 points |
| ๐ก๏ธ Barriers | Defensive shields | Absorb 3 hits |
| ๐ฅ Bullets | Player shoots cyan, aliens shoot magenta | Destroy enemies |
Survival Tactics:
- Stay Mobile - Constant movement avoids alien bullets
- Use Barriers - Hide behind them when overwhelmed
- Shoot Continuously - Keep pressure with 3-bullet maximum
- Prioritize Threats - Target closest aliens first
- Hunt Mystery Ships - Easy 100 points bonus
- Save Barriers - More valuable in later levels
- Watch Patterns - Learn alien bullet trajectories
Scoring Strategies:
- Focus on top aliens (30 pts) when possible
- Time mystery ship appearances
- Clear bottom rows to slow alien descent
- Maintain all 3 lives for maximum attempts
Level 1-3: Learn the basics
- Standard alien speed
- 1000ms between alien shots
- 3 lives to practice
Level 4-7: Intermediate challenge
- Aliens move 20% faster per level
- Shooting frequency increases
- Barriers become critical
Level 8+: Expert gameplay
- Significantly faster aliens
- Rapid alien fire rate
- Requires mastery of controls
- Built with: HTML5 Canvas, CSS3, Vanilla JavaScript
- Performance: Optimized 60 FPS gameplay
- Storage: High scores saved in localStorage
- Compatibility: All modern browsers
- Responsive: Works on desktop, tablet, mobile
Game running too fast?
- Animation is capped at 60 FPS automatically
- Try a different browser if issues persist
Touch controls delayed?
- Ensure you're using a modern mobile browser
- Clear browser cache and reload
High score not saving?
- Check if localStorage is enabled
- Private/Incognito mode may prevent saving
Game14/
โโโ ๐ index.html # Main HTML with game UI
โโโ ๐จ style.css # Retro arcade styling
โโโ ๐ง script.js # Complete game logic
โโโ ๐ README.md # Comprehensive documentation
โโโ ๐ LICENSE # MIT License
- โ Authentic classic - True to original Space Invaders
- โ Modern polish - Smooth animations and effects
- โ Progressive challenge - Gets harder as you advance
- โ Mobile-friendly - Play anywhere, anytime
- โ No dependencies - Pure vanilla JavaScript
- โ Saves progress - High score tracking
- โ Polished UI - Professional overlays and screens
๐ Location: Game15/
A classic arcade-style brick breaker game where you control a paddle to bounce a ball and destroy all the bricks! Break through colorful layers of bricks, advance through challenging levels, and set high scores in this timeless arcade experience.
- Open
index.htmlin your browser - Click "START GAME" button
- Use arrow keys or mouse to move your paddle left and right
- Press SPACEBAR to launch the ball
- Break all bricks to complete the level
- Don't let the ball fall below your paddle!
๐ฎ Classic Arcade Gameplay
- ๐งฑ 6 rows of colorful bricks - Different colors worth different points
- ๐ฏ Progressive difficulty - Ball speed increases each level
- โค๏ธ Lives system - 3 lives to master each level
- ๐ High score tracking - Saved in browser localStorage
- โก Physics-based rebounds - Angle changes based on paddle hit position
- ๐๏ธ Level progression - Infinite levels with increasing challenge
๐จ Visual Excellence
- Modern gradient design with vibrant colors
- Smooth animations and transitions
- Glowing ball effects with shadows
- Glossy brick appearance with shine effects
- Professional UI with game statistics
- Responsive layout for all screen sizes
๐ Scoring System
- ๐ฅ Red Bricks: 50 points
- ๐ง Orange Bricks: 40 points
- ๐จ Yellow Bricks: 30 points
- ๐ฉ Green Bricks: 20 points
- ๐ฆ Blue Bricks: 10 points
๐ฑ Multiple Control Options
- Keyboard arrow keys
- Mouse movement
- Responsive touch support
Desktop:
โโArrow Keys - Move paddle left/right- Mouse Movement - Direct paddle control
SPACE- Launch ballP- Pause/Resume game
| Element | Description | Points |
|---|---|---|
| ๐ฅ Red Brick | Top row | 50 pts |
| ๐ง Orange Brick | Second row | 40 pts |
| ๐จ Yellow Brick | Third row | 30 pts |
| ๐ฉ Green Brick | Fourth row | 20 pts |
| ๐ฆ Blue Brick | Fifth & sixth rows | 10 pts |
| ๐ฏ Paddle | Player-controlled | Hit position matters |
| โช Ball | Destroys bricks | Speed increases per level |
Mastering the Paddle:
- Angle Control - Hit ball with paddle edges for sharper angles
- Center Hits - Paddle center gives more vertical bounces
- Positioning - Stay near ball's trajectory path
- Combo Shots - Aim for brick clusters for multiple hits
- Top Rows First - Red/orange bricks worth more points
- Ball Speed - Anticipate faster speeds in later levels
- Corner Shots - Use walls to reach difficult bricks
Scoring Strategies:
- Prioritize high-value bricks (red, orange)
- Clear top rows early for maximum points
- Create ball paths through brick columns
- Maintain lives for bonus opportunities
- Master paddle angles for precision shots
Level 1-3: Learning phase
- Base ball speed (4 units)
- Clear brick patterns
- Practice paddle control
Level 4-7: Intermediate challenge
- Ball speed increases by 0.5 per level
- Faster reflexes required
- Strategic positioning matters
Level 8+: Expert gameplay
- High ball speeds
- Precision paddle control essential
- Quick reaction times critical
- Built with: HTML5 Canvas, CSS3, Vanilla JavaScript
- Performance: Optimized 60 FPS gameplay with requestAnimationFrame
- Storage: High scores saved in localStorage
- Compatibility: All modern browsers (Chrome, Firefox, Safari, Edge)
- Responsive: Adapts to different screen sizes
- No Dependencies: Pure vanilla JavaScript
Ball moving too fast?
- This is intentional progression - it speeds up each level
- Practice paddle positioning and anticipation
Paddle not responding to mouse?
- Ensure cursor is over the game canvas
- Try keyboard controls instead
High score not saving?
- Check if localStorage is enabled in browser
- Private/Incognito mode may prevent saving
- Clear browser cache and try again
Game15/
โโโ ๐ index.html # Main HTML with game UI
โโโ ๐จ style.css # Modern gradient styling
โโโ ๐ง script.js # Game physics and logic
โโโ ๐ README.md # Complete documentation
โโโ ๐ LICENSE # MIT License
- โ Authentic arcade - Classic brick breaker gameplay
- โ Modern design - Beautiful gradients and effects
- โ Physics-based - Realistic ball mechanics
- โ Progressive - Difficulty increases naturally
- โ Dual controls - Keyboard or mouse
- โ Score tracking - LocalStorage high scores
- โ No dependencies - Pure vanilla JavaScript
- โ Responsive UI - Works on all screen sizes
Simply download the game files and open the .html file in your browser. No installation required!
Using Python 3:
cd /path/to/web-games
python -m http.server 8000
# Open http://localhost:8000 in your browserUsing Python 2:
cd /path/to/web-games
python -m SimpleHTTPServer 8000Using Node.js:
cd /path/to/web-games
npx http-serverUsing PHP:
cd /path/to/web-games
php -S localhost:8000Requirements:
- Python 3.x installed on your system
Installation:
- Navigate to
Game1/directory - Run:
python main.py
web-games/
โโโ Game1/
โ โโโ main.py # Number Guessing Game
โ โโโ README.md # Game documentation
โโโ Game2/
โ โโโ index.html # Ludo Game
โ โโโ ludo.css # Ludo Game (Styles)
โ โโโ ludo.js # Ludo Game (Logic)
โ โโโ README.md # Game documentation
โ โโโ LICENSE # License file
โ โโโ CONTRIBUTING.md # Contribution guidelines
โโโ Game3/
โ โโโ index.html # Snake & Ladder
โ โโโ snake_ladder.css # Snake & Ladder (Styles)
โ โโโ snake_ladder.js # Snake & Ladder (Logic)
โ โโโ README.md # Game documentation
โ โโโ LICENSE # License file
โ โโโ CONTRIBUTING.md # Contribution guidelines
โโโ Game4/
โ โโโ index.html # Worm Game
โ โโโ worm.css # Worm Game (Styles)
โ โโโ worm.js # Worm Game (Logic)
โ โโโ README.md # Game documentation
โ โโโ FEATURES.md # Detailed features
โ โโโ INSTALLATION.md # Installation guide
โ โโโ STRATEGIES.md # Strategy guide
โ โโโ assets/ # Game assets
โโโ Game5/
โ โโโ index.html # Flappy Bird
โ โโโ flappybird.css # Flappy Bird (Styles)
โ โโโ flappybird.js # Flappy Bird (Logic)
โ โโโ README.md # Game documentation
โ โโโ LICENSE # License file
โ โโโ assets/ # Game assets
โโโ Game6/
โ โโโ index.html # Rock Paper Scissors
โ โโโ style.css # Styles
โ โโโ script.js # Game Logic
โ โโโ README.md # Game documentation
โ โโโ LICENSE # License file
โ โโโ CONTRIBUTING.md # Contribution guidelines
โโโ Game7/
โ โโโ index.html # Image Playground
โ โโโ style.css # Styles
โ โโโ script.js # Game Logic
โ โโโ config.js # Configuration
โ โโโ README.md # Game documentation
โ โโโ LICENSE # License file
โโโ Game8/
โ โโโ index.html # Tetris
โ โโโ style.css # Styles
โ โโโ script.js # Game Logic
โ โโโ README.md # Game documentation
โ โโโ LICENSE # License file
โโโ Game9/
โ โโโ index.html # Pac-Man
โ โโโ style.css # Styles
โ โโโ script.js # Game Logic
โ โโโ README.md # Game documentation
โ โโโ LICENSE # License file
โโโ Game10/
โ โโโ index.html # Memory Card Game
โ โโโ style.css # Styles
โ โโโ script.js # Game Logic
โ โโโ README.md # Game documentation
โ โโโ LICENSE # License file
โโโ Game11/
โ โโโ index.html # Tic Tac Toe
โ โโโ style.css # Styles
โ โโโ script.js # Game Logic
โ โโโ README.md # Game documentation
โ โโโ LICENSE # License file
โโโ Game12/
โ โโโ index.html # Maze Game
โ โโโ style.css # Styles
โ โโโ script.js # Game Logic
โ โโโ README.md # Game documentation
โ โโโ LICENSE # License file
โโโ Game13/
โ โโโ index.html # Hangman
โ โโโ style.css # Styles
โ โโโ script.js # Game Logic
โ โโโ README.md # Game documentation
โ โโโ LICENSE # License file
โโโ Game14/
โ โโโ index.html # Space Invaders
โ โโโ style.css # Styles
โ โโโ script.js # Game Logic
โ โโโ README.md # Game documentation
โ โโโ LICENSE # License file
โโโ Game15/
โ โโโ index.html # Brick Breaker
โ โโโ style.css # Styles
โ โโโ script.js # Game Logic
โ โโโ README.md # Game documentation
โ โโโ LICENSE # License file
โโโ Game16/
โ โโโ index.html # Whack-a-Mole
โ โโโ style.css # Styles
โ โโโ script.js # Game Logic
โ โโโ README.md # Game documentation
โ โโโ LICENSE # License file
โโโ Game17/
โ โโโ index.html # Castle Defenders
โ โโโ style.css # Styles
โ โโโ script.js # Game Logic
โ โโโ README.md # Game documentation
โ โโโ LICENSE # License file
โโโ Game18/
โ โโโ index.html # UNO Card Game
โ โโโ style.css # Styles
โ โโโ script.js # Game Logic
โ โโโ README.md # Game documentation
โ โโโ LICENSE # License file
โโโ Game19/
โ โโโ index.html # Skyline Sprint
โ โโโ style.css # Styles
โ โโโ script.js # Game Logic
โ โโโ README.md # Game documentation
โ โโโ LICENSE # License file
โโโ Game20/
โ โโโ index.html # Whack-a-Mole (All-in-one file)
โ โโโ README.md # Game documentation
โ โโโ LICENSE # License file
โโโ Web_Games_Collection/
โ โโโ index.html # Collection portal
โโโ LICENSE # MIT License
โโโ README.md # This file
Contributions are welcome! Here's how you can help:
- Use the GitHub Issues tab to report bugs
- Include browser and device information
- Describe the steps to reproduce the issue
- Add screenshots if possible
- Check existing issues/suggestions first
- Describe your feature idea in detail
- Explain why it would be useful
- Include mockups/sketches if relevant
- Fork the repository
- Create a feature branch (
git checkout -b feature/YourFeature) - Make your changes:
- Follow the existing code style
- Add comments for complex logic
- Test thoroughly on different devices
- Commit your changes (
git commit -m 'Add some feature') - Push to your branch (
git push origin feature/YourFeature) - Open a Pull Request
- One feature/fix per PR
- Update README if needed
- Test your changes thoroughly
- Include before/after screenshots for UI changes
JavaScript
- Use
constandletinstead ofvar - Use meaningful variable names
- Add comments for complex logic
- Keep functions small and focused
CSS
- Use meaningful class names
- Group related styles together
- Use CSS variables for repeated values
- Add comments for complex layouts
HTML
- Use semantic HTML5 elements
- Include proper ARIA labels
- Keep structure clean and organized
- Mobile responsiveness
- New game features
- Performance improvements
- Accessibility enhancements
- Documentation improvements
- Bug fixes
- UI/UX enhancements
This project is open source and available under the MIT License - see the LICENSE file for details.
MIT License
Copyright (c) 2025 Faiz Ahmad Khan
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
Created with โค๏ธ by Faiz Ahmad Khan
A: Yes! Games 2, 3, and 4 are fully responsive and work great on tablets and smartphones.
A: No! All games work offline once downloaded. They're pure HTML/CSS/JavaScript or Python.
A: Absolutely! The code is open source. Feel free to fork, modify, and create your own versions.
A: Please use the GitHub Issues page to report any bugs with detailed information.
A: Yes! We'd love contributions. Please open an issue first to discuss your idea.
A: Python 3.x is recommended. Python 2 is deprecated but might still work.
A: You can use GitHub Pages, Netlify, Vercel, or any traditional web hosting service.
For questions, issues, or feedback:
- ๐ง Create an issue on GitHub
- ๐ฌ Start a discussion
- ๐ Check existing documentation
- Online multiplayer support for web games
- AI opponents for single-player modes
- Sound effects and background music
- Leaderboard system with cloud storage
- Mobile app versions
- Additional game themes
- Difficulty settings
- Achievement system
- Statistics and analytics
- More games added to collection
Choose Your Game:
- ๐ฒ Number Guessing - Quick Python game
- ๐ฒ Ludo - Classic board game
- ๐ Snake & Ladder - Board game adventure
- ๐ชฑ Worm - Action-packed gameplay
- ๐ฆ Flappy Bird - Flying challenge
- โ๏ธ Rock Paper Scissors - Quick battle
- ๐จ Image Playground - Creative fun
- ๐งฑ Tetris - Puzzle classic
- ๐ป Pac-Man - Maze arcade
- ๐ Memory Card - Memory challenge
- โ Tic Tac Toe - Strategy game
- ๐ Maze Game - Pathfinding puzzle
- ๐ Hangman - Word guessing
- ๐ Space Invaders - Arcade shooter
- ๐งฑ Brick Breaker - Classic arcade game
- ๐จ Whack-a-Mole - Reflex arcade challenge
- ๐ฐ Castle Defenders - Tower defense RPG
- ๐ UNO Card Game - Classic card strategy game
- ๐๏ธ Skyline Sprint - High-speed dodge runner
- ๐จ Whack-a-Mole - Retro arcade reflex game
Made with ๐ using HTML5, CSS3, JavaScript, and Python