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

def lifedemo::LifeBoard::set (   self,

Set a cell to the live state

Definition at line 58 of file lifedemo.py.

00058                        : 
      """Set a cell to the live state"""
      if x<0 or self.M<=x or y<0 or self.N<=y:
          raise ValueError, "Coordinates out of range %i,%i"% (y,x)
      self.state[x,y] = 1

Generated by  Doxygen 1.6.0   Back to index