Skip to content

wITTus/cgol

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Conway's Game of Life in Rust

Features

  • Terminal graphics
  • Specify custom amount of columns and rows (-c <number>, -r <number>)
  • Color cells by age
  • Configurable speed in milliseconds (-t <number>)
  • Multiple initialization modes (--init [random|empty|gauss])
  • Terminal high resolution mode (-x)
  • Mark patterns with red color (-m <filepath>)
  • Insert patterns into canvas (-i <filepath>)
  • Load .rle files
  • Load .cells files
  • Custom rules (--rule <rule>)

Build

cargo build --release

Run

cd target/release
./cgol

Image

High Resolution Mode

Make the font size of your terminal very small (e.g. via Ctrl +/-). Then:

./cgol -x

This works best with fast terminal emulators (e.g. Alacritty).

Image

Load Patterns

./cgol -i ../../patterns/glidergun.rle --init empty

Image

Mark Patterns in Random Output

./cgol -m ../../patterns/block.cells

Image

Custom Rules

Try some well-known life-like cellular automata!

./cgol --rule B0/S8

Image

About

Conway's Game of Life in Rust!

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages