Skip to content

Just me learning Rust and implementing GoL in there using nannou

License

Notifications You must be signed in to change notification settings

vvzen/game-of-life-rust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Game of life

Just the good old Game of Life, implemented in Rust, as an exercise done to learn Rust and nannou.

Run

You'll need to have rust installed, yatta yatta..

$ cargo run --release

Example run

media/example_run.gif

Notes

Being a learning exercise, this implementation is not particularly efficient.

The grid fully lives on the stack, since is modelled as arrays (not vectors), so the max size is quite limited. Plus, there's probably a few copies going around that might be avoided.

As a future exercise, I might try to rewrite this using the ndarray crate, but for now I wanted to implement GoL with as few external dependencies as I could.

About

Just me learning Rust and implementing GoL in there using nannou

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages