2023-03-17 23:07:53 +00:00
|
|
|
//! A library implemting the logic for Conway's Game of Life
|
|
|
|
//! It can be embedded into applications, and can read the Plaintext and Life 1.05 file formats.
|
2023-09-22 13:47:11 +00:00
|
|
|
//extern crate test;
|
2023-03-17 23:07:53 +00:00
|
|
|
|
|
|
|
pub mod game;
|
|
|
|
pub mod reader;
|
|
|
|
pub mod writer;
|
|
|
|
|
2023-09-22 13:47:11 +00:00
|
|
|
/*#[cfg(test)]
|
2023-03-17 23:07:53 +00:00
|
|
|
mod tests {
|
|
|
|
use super::*;
|
|
|
|
use test::Bencher;
|
|
|
|
#[bench]
|
|
|
|
fn test_spacefiller_perf (b: &mut Bencher) {
|
|
|
|
let mut game = reader::read_game_at_path("tests/cells/spacefiller.cells").unwrap();
|
|
|
|
b.iter(|| game.advance_board());
|
|
|
|
}
|
2023-09-22 13:47:11 +00:00
|
|
|
}*/
|