Loïc GUEZO b053bbcbeb feat: add generation function
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.
2025-05-01 22:05:06 +02:00
2025-05-01 22:05:06 +02:00
2025-04-29 22:40:38 +02:00
2025-05-01 09:29:47 +02:00
2025-05-01 09:29:47 +02:00
2025-04-29 22:35:29 +02:00
2025-04-29 22:35:29 +02:00

GameOfLife_rs

simple game of life based in rust

Description
No description provided
Readme MIT 151 KiB
Languages
Rust 100%