Conway's Game of Life is a console application built with Clojure. It is a zero player game where an initial game state evolves based on the position of the cells on the board.
The game is played on a two dimensional grid where alive (populated) cells are filled and dead (non-populated) cells are blank. Each cell is surrounded by up to eight neigboring cells. The state of the board from generation to generation is determined by four rules:
- Any live cell with fewer than two live neighbours dies, as if caused by under-population.
- Any live cell with two or three live neighbours lives on to the next generation.
- Any live cell with more than three live neighbours dies, as if by over-population.
- Any dead cell with exactly three live neighbours becomes a live cell, as if by reproduction.
New generations continue to evolve indefinitely unless all cells die or are grouped into smaller clusters not close enough to reproduce.
In your desired location in terminal, clone the repo
git clone git@github.com:NicoleCarpenter/game-of-life.git
Then cd
into the application's root directory
cd game-of-life
From there, to run the application, type
lein run
From the root directory, type
lein spec