A beautiful, interactive implementation of Conway's Game of Life with a modern UI, multiple themes, and advanced customization features.
- Modern, responsive design with smooth animations
- Multiple themes: Default, Dark, Neon, and Ocean
- Professional typography using Inter font family
- Glassmorphism effects and elegant shadows
- Mobile-friendly responsive layout
- Interactive grid with click-to-toggle cells
- Real-time statistics (generation count, alive cells, speed)
- Adjustable grid sizes (10x10 to 30x30)
- Variable animation speed (50ms to 1000ms)
- Pre-built patterns (Glider, Blinker, Toad, Beacon)
- Random pattern generator
- Play/Pause functionality
- Reset to clear the grid
- Random pattern generation
- Speed control with real-time adjustment
- Grid size selection
- Theme switching with live preview
- A modern web browser (Chrome, Firefox, Safari, Edge)
- No additional software required
- Clone or download this repository
- Open
index.htmlin your web browser - Start playing immediately!
# If using git
git clone https://github.com/HaseebIqbal1199/Conways_Game_of_life.git
cd "Convoy Game Of Life"
# Open in browser
start index.html # Windows
open index.html # macOS- Click cells on the grid to make them alive (they'll turn colored)
- Press Play to start the simulation
- Watch as the cells evolve according to Conway's rules
- Pause anytime to examine the current state
- Reset to clear the grid and start over
Choose from four beautiful themes:
- Default: Clean, professional white theme
- Dark: Elegant dark mode with blue accents
- Neon: Cyberpunk-inspired green glow effects
- Ocean: Calming blue oceanic theme
- Size: Select from 10x10 up to 30x30 cells
- Speed: Adjust animation from 50ms (fast) to 1000ms (slow)
Pre-built patterns to get you started:
- Glider: A moving pattern that travels across the grid
- Blinker: Simple oscillating pattern
- Toad: Another oscillating pattern with period 2
- Beacon: A stable oscillating pattern
The Game of Life follows four simple rules:
- Birth: A dead cell with exactly 3 live neighbors becomes alive
- Survival: A live cell with 2 or 3 live neighbors stays alive
- Underpopulation: A live cell with fewer than 2 neighbors dies
- Overpopulation: A live cell with more than 3 neighbors dies
These simple rules create complex, emergent behaviors and patterns!
Conway Game Of Life/
โโโ index.html # Main HTML file
โโโ README.md # This file
โโโ dir/
โโโ css/
โ โโโ style.css # Premium styling and themes
โโโ js/
โโโ script.js # Enhanced JavaScript with UI controls
โโโ script.js.backup # Backup of enhanced version
โโโ script.js.old # Original game logic
Clean, professional design with blue accents and white background.
Sophisticated dark mode with subtle blue highlights perfect for extended use.
Cyberpunk-inspired design with bright green glowing effects and animations.
Calming blue gradient theme reminiscent of ocean depths.
- HTML5: Semantic markup and structure
- CSS3: Advanced styling with CSS Grid, Flexbox, and custom properties
- Vanilla JavaScript: Pure JavaScript without external dependencies
- Font Awesome: Icon library for UI elements
- Google Fonts: Inter font family for typography
- Responsive Design: CSS Grid and Flexbox for layout
- Theme System: CSS custom properties for easy theme switching
- Smooth Animations: CSS transitions and keyframe animations
- Modular JavaScript: Clean separation of game logic and UI controls
| Key | Action |
|---|---|
Spacebar |
Play/Pause toggle |
R |
Reset grid |
Escape |
Pause game |
- Generation Counter: Shows current evolution generation
- Alive Cells: Real-time count of living cells
- Speed Indicator: Current animation speed display
- Hover Effects: Cells scale and glow on mouse hover
- Smooth Transitions: Fluid animations between states
- Visual Feedback: Clear indication of active cells
- Loading States: Elegant loading animations
Contributions are welcome! Here are some ways you can help:
- Report bugs or suggest features
- Improve documentation
- Add new themes or patterns
- Optimize performance
- Enhance accessibility
- Fork the repository
- Make your changes
- Test in multiple browsers
- Submit a pull request
This project is open source and available under the MIT License.
Created with โค๏ธ by Muhammad Haseeb
- John Conway for creating the Game of Life
- Inter Font for beautiful typography
- Font Awesome for the icon set
- The open source community for inspiration
Enjoy exploring the fascinating world of cellular automata! ๐
Made with passion for the beauty of emergent complexity.