BiblioPixelAnimations.cube.GameOfLife module

class BiblioPixelAnimations.cube.GameOfLife.CubeGameOfLife(layout, toroidal=False, **kwds)[source]

Bases: bibliopixel.animation.cube.Cube

COLOR_DEFAULTS = (('bg', (0, 0, 0)), ('color', (255, 0, 0)))
pre_run()[source]
step(amt=1)[source]
stepTable()[source]
class BiblioPixelAnimations.cube.GameOfLife.Table(width, height, depth, rand_max, table=None)[source]

Bases: object

checkStable()[source]
genNewTable()[source]
liveNeighbours(z, y, x)[source]

Returns the number of live neighbours.

turn()[source]

Turn