Exemplo n.º 1
0
    class Topology:
        """2D Moore neighborhood, wrapped to a 3-torus."""

        dimensions = 2
        lattice = core.OrthogonalLattice()
        neighborhood = core.MooreNeighborhood()
        border = core.TorusBorder()
Exemplo n.º 2
0
    class Topology:
        """
        Mandatory class for all ``CellularAutomaton`` instances.

        All class variables below are also mandatory.

        Here, we declare the topology as a 2-dimensional orthogonal
        lattice with Moore neighborhood, wrapped to a 3-torus.

        """

        dimensions = 2
        lattice = core.OrthogonalLattice()
        neighborhood = core.MooreNeighborhood()
        border = core.TorusBorder()
Exemplo n.º 3
0
 class Topology:
     """Most common topology."""
     dimensions = 2
     lattice = core.OrthogonalLattice()
     neighborhood = core.MooreNeighborhood()
     border = core.TorusBorder()
Exemplo n.º 4
0
 class Topology:
     """Standard Moore neighbourhood with torus topology."""
     dimensions = 2
     lattice = core.OrthogonalLattice()
     neighborhood = core.MooreNeighborhood()
     border = core.TorusBorder()