celly 0.6.0

Cellular automaton library.
1
2
3
4
5
6
7
8
9
use traits::Coord;


impl Coord for (i32, i32) {
    fn from_2d(x: i32, y: i32) -> Self { (x, y) }

    fn x(&self) -> i32 { self.0 }
    fn y(&self) -> i32 { self.1 }
}