Logo Search packages:      
Sourcecode: jack version File versions  Download package

lifedemo::LifeBoard Class Reference

List of all members.

Detailed Description

Encapsulates a Life board

M,N : horizontal and vertical size of the board

display(update_board) -- If update_board is true, compute the 
                         next generation.  Then display the state
                   of the board and refresh the screen.
erase() -- clear the entire board
makeRandom() -- fill the board randomly
set(y,x) -- set the given cell to Live; doesn't refresh the screen
toggle(y,x) -- change the given cell from live to dead, or vice
               versa, and refresh the screen display

Definition at line 20 of file lifedemo.py.

Public Member Functions

def __init__
def display
def erase
def makeRandom
def set
def toggle

Public Attributes


The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index