mirror of
https://github.com/guezoloic/game-of-life.git
synced 2026-01-25 10:34:07 +00:00
b053bbcbeb2c1cc89d7f2ecb02d91ca15ccf5e8f
This commit adds the generation function, which: - Takes the current grid arena as input. - Creates a new temporary grid. - Applies Conway's Game of Life rules to compute the next state. - Replaces the original grid with the updated one. Conway's Game of Life rules: - A live cell dies if it has fewer than 2 or more than 3 live neighbours. - A live cell survives if it has 2 or 3 live neighbours. - A dead cell becomes alive if it has exactly 3 live neighbours.
GameOfLife_rs
simple game of life based in rust
Languages
Rust
100%