Skip to content

evomata/gridsim-ui

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gridsim-ui

Crates.io MIT/Apache docs.rs LoC

Visualizing gridsim grids

Example

extern crate gridsim;
extern crate gridsim_ui;

use gridsim::{SquareGrid, GOL};
use gridsim_ui::Loop;

fn main() {
    let grid = SquareGrid::<GOL>::new_true_coords(
        1024,
        1024,
        vec![(0, 1), (1, 0), (1, 1), (1, 2), (2, 0)],
    );
    Loop::new_bool().run(grid);
}

See examples/langtons_ant.rs for how to define a Rule.

See evomata12 for how to define a Sim.