Crates.io | lifegame |
lib.rs | lifegame |
version | 0.2.1 |
source | src |
created_at | 2023-11-13 22:43:50.458264 |
updated_at | 2023-11-16 02:48:29.568679 |
description | A simple Rust implementation of the classic cellular automaton, Conway's Game of Life. |
homepage | |
repository | https://github.com/Lingxuan-Ye/lifegame/tree/main/rust |
max_upload_size | |
id | 1034143 |
size | 55,922 |
A simple Rust implementation of the classic cellular automaton, Conway's Game of Life.
Table of Contents
Ensure you have Rust and Cargo installed. Then run:
cargo install lifegame
If you prefer to install from source, run:
git clone https://github.com/Lingxuan-Ye/lifegame
cargo install --path ./lifegame/rust/
Create a LifeGame with $80 \times 100$ cells (resize your terminal window to prevent display glitches):
lifegame --nrows 80 --ncols 100
Classic Matrix style:
lifegame --cell bit
Emojify the world:
lifegame --cell emoji
Share your game:
# save to file
lifegame --hide-stats --iteration-max 1000 > <SOME_FILE>
# load from file
cat <SOME_FILE> || type <SOME_FILE>
LifeGame
is distributed under the terms of the MIT License.