This is part of a series of fun little programs I write to learn rust:
Conway's Game of Life has been implemented a million times, so what's one more?
To run, use cargo run .
in the repo's root folder.
The game can be configured via three contants in src/main.rs:
SIZE
determines the size of the (square) playing field in characters. Choose a number that is at most equal to the minimum of your terminal's width and height.CHANCE
determines how likely a node is to be alive in the inital configuration.SLEEP_INTERVAL
determines how fast the game runs. The lower the number, the more often the field is updated.