This is a simple implementation of Conway's Game of Life using the Ebiten game library.
- Click the "PLAY" button to start the game.
- The game will start with a randomized grid of cells.
- Watch as the cells evolve according to the rules of Conway's Game of Life.
The game follows these simple rules:
- Survival: A live cell with 2 or 3 live neighbors survives to the next generation.
- Death: A live cell with fewer than 2 live neighbors dies (underpopulation). A live cell with more than 3 live neighbors dies (overpopulation).
- Birth: A dead cell with exactly 3 live neighbors becomes a live cell (reproduction).
- Mouse Click: Used to interact with the game menu.
- Make sure you have Go installed on your system.
- Install the Ebiten game library:
go get github.com/hajimehoshi/ebiten/v2
- Clone this repository:
git clone https://github.com/nomopo45/gameOflife.git
- Navigate to the project directory:
cd gameOflife
- Initialize go modules:
go mod init conway.go
- Install dependencies:
go mod tidy
- Run the game:
go run .
Contributions are welcome! Feel free to open an issue or submit a pull request.
This project is licensed under the MIT License.