Skip to content

Latest commit

 

History

History
90 lines (54 loc) · 1.48 KB

README.md

File metadata and controls

90 lines (54 loc) · 1.48 KB

Conway's Game of Life on 2-D toroidal grid in rust.

An interactive command-line experience.

glider.png

Steps to success:

  1. Start program with cargo run
  2. Select a demo
  3. ????
  4. PROFIT!!!

My first rust program. I would really appreciate feedback on idiomatic rust.

You can change the const declaration to adjust the size of the grid.

Author: Lyall Jonathan Di Trapani

Tests

cargo test

Crate

https://crates.io/crates/life

To publish a new version:

cargo publish

Test Coverage

https://github.com/xd009642/tarpaulin

sudo apt-get install pkg-config cmake zlib1g-dev
RUSTFLAGS="--cfg procmacro2_semver_exempt" cargo install cargo-tarpaulin

Takes forever to compile tarpaulin.

cargo tarpaulin -v

Format

https://github.com/rust-lang-nursery/rustfmt

rustup component add rustfmt-preview
cargo fmt

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

TODO

  • put tests in separate file
  • rustfmt
  • how to write tests with fakes/mocks?