Package pyrobot :: Package general :: Module ants :: Class Board
[frames | no frames]

Class Board


Method Summary
  __init__(self, width, height, pixelsPerCell, title)
A board for ants to explore...
  __getitem__(self, args)
A shortcut to get a board state...
  __setitem__(self, (x, y), value)
A shortcut to assign a board state...
  close(self)
close the window...
  draw(self)
Initialize the board.
  move(self, x, y, xoffset, yoffset)
Move an ant in a direction...

Method Details

__init__(self, width, height, pixelsPerCell=10, title='Ants')
(Constructor)

A board for ants to explore

__getitem__(self, args)
(Indexing operator)

A shortcut to get a board state

__setitem__(self, (x, y), value)
(Index assignment operator)

A shortcut to assign a board state

close(self)

close the window

draw(self)

Initialize the board. You must do this if you ever want to see the path

move(self, x, y, xoffset=0, yoffset=0)

Move an ant in a direction

Generated by Epydoc 2.1 on Mon Jul 25 01:39:27 2005 http://epydoc.sf.net