Skip to content
/ gol Public

Data structure for Conway's Game of Life in Rust

Notifications You must be signed in to change notification settings

tlrobrn/gol

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

gol

Data structures for Conway's Game of Life

Usage

Add this to your project's dependencies in Cargo.toml:

[dependencies]
gol = { git = "https://github.com/tlrobrn/gol" }

and this to your crate root:

extern crate gol;

Examples

use gol::{Grid, Point};

let point = Point { x: 5, y: 2 };
let mut grid = Grid::with_points(&[point]);

assert_eq!(Some(0), grid.age_of_point(&point));

grid.tick();
assert_eq!(None, grid.age_of_point(&point));

Docs

Run the following to generate and open the docs in your default browser:

$ cargo doc --open

Tests

$ cargo test

Build

$ cargo build

About

Data structure for Conway's Game of Life in Rust

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages