This implementation of Conway's Game of Life is a simple and lightweight version written in pure HTML, CSS, and JavaScript. No frameworks or libraries were used, keeping it minimalistic and easy to understand.
-
Access via Browser:
- Alternatively, you can access the game by navigating to the following link in your browser:
-
Clone the Repository:
https://github.com/mohaskii/gameOfLife-.git
-
Open in Visual Studio Code:
- Open the project folder in Visual Studio Code.
-
Launch Live Server:
- Right-click on the
index.html
file. - Select "Open with Live Server."
- Right-click on the
- Cellular automaton based on Conway's Game of Life.
- Pure JavaScript, HTML, and CSS; no external frameworks or libraries used.
- Responsive grid with zoom in and out functionality.
- Start, pause, and reset the game easily.
-
Start/Pause the Game:
- Click the "Run/Pause" button to start or pause the simulation.
-
Zoom In/Out:
- Use the "Zoom In" and "Zoom Out" buttons to adjust the zoom level.
-
Randomize the Grid:
- Click the "Shuffle" button to randomize the initial state of the grid.
-
Reset the Game:
- Click the "Refresh" button to reset the game to its default state.
-
Toggle Cell State:
- Click on a cell in the grid to toggle its state between alive and dead.
- Ensure that JavaScript is enabled in your browser for the game to function properly.
- Tested on modern browsers such as Chrome, Firefox, and Edge.
Feel free to explore the code and experiment with different patterns in this Game of Life implementation!