gridlife

Crates.iogridlife
lib.rsgridlife
version0.0.2
created_at2025-01-21 21:14:55.914436+00
updated_at2025-01-23 21:46:23.638312+00
descriptionAn library to generate and simulate Conways Game of Life cellular automatons
homepagehttps://github.com/sinon/game-of-life
repositoryhttps://github.com/sinon/game-of-life
max_upload_size
id1525521
size33,811
Rob Hand (sinon)

documentation

README

Game of Life

codecov

Implementation of Conway's Game of Life.

Generate 2d Grid of given size that are empty or contain a random distribution of dead or alive populations.

update_states is then called on the Grid to generate the next grid state based on the rules of Conway's Game of Life.

Package also contains an example Text User Interface (TUI) leveraging gridlife with ratatui, which can be used to run random simulations.

Run TUI

cargo run --features="build-binary"

image
Commit count: 12

cargo fmt