Crate gridsim[][src]

Gridsim is a library intended to run grid-based simulations.

The new generics introduced in gridsim 0.2.0 make it possible to implement hex grids, rhombic dodecahedral honeycombs(in its multiple tight-pack layer patterns), square grids, cube grids, and even n-dimensional grids, but they are currently not yet implemented.

Modules

moore
neumann

Structs

SquareGrid

Represents the state of the simulation.

Enums

GOL

Conway's Game of Life

Traits

Direction
GetNeighbors
Neighborhood

A Neighborhood contains all of your neighbors, which are each in their own Direction.

Rule

Defines a simulation for simple things like cellular automata.

Sim

Defines a simulation for complicated things that have too much state to abandon on the next cycle.

TakeDiff
TakeMoveDirection
TakeMoveNeighbors