View this PageEdit this PageAttachments to this PageHistory of this PageHomeRecent ChangesSearch the SwikiHelp Guide

GridWorld - violating post conditions

If you are creating a kind of critter never override the act method! Only override the appropriate method based on the template.

Override getActors to get actors other than the neigboring ones.
Override processActors to change from eating all non rocks and non critters.
Override getMoveLocations to change from getting all the empty adjacent locations.
Override selectMoveLocation to change from getting a random pick.
Override makeMove to change from only moving to the new location when you move (you might want to turn or do something else)

Link to this Page