See Condition

Definition:

The See condition checks if the agent at the cell indicated by the Direction parameter looks like the depiction specified in the Depiction parameter. The dot (.) refers to the agent itself.

If the indicated cell contains the chosen depiction, the condition is true. Otherwise, the condition is false.

Parameters:

direction, depiction

Example:

The Shark agent in the Fish Tank simulation looks above it to see if there is a Fish agent to eat, and also checks to see if the Shark itself looks like a Shark going left and decides to change directions or move to the left.

See the Fish Tank simulation.


| Next | Reference Manual | Getting Started Manual |