Skip to content

mohaskii/gameOfLife-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Conway's Game of Life

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.

Usage

  1. Access via Browser:

  2. Clone the Repository: https://github.com/mohaskii/gameOfLife-.git

  3. Open in Visual Studio Code:

    • Open the project folder in Visual Studio Code.
  4. Launch Live Server:

    • Right-click on the index.html file.
    • Select "Open with Live Server."

Features

  • 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.

How to Play

  1. Start/Pause the Game:

    • Click the "Run/Pause" button to start or pause the simulation.
  2. Zoom In/Out:

    • Use the "Zoom In" and "Zoom Out" buttons to adjust the zoom level.
  3. Randomize the Grid:

    • Click the "Shuffle" button to randomize the initial state of the grid.
  4. Reset the Game:

    • Click the "Refresh" button to reset the game to its default state.
  5. Toggle Cell State:

    • Click on a cell in the grid to toggle its state between alive and dead.

Notes

  • 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!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published