Empty Condition


The Empty condition checks if the neighboring cell specified by the Direction parameter is empty. A cell is empty if it does not contain any agents found in the current Gallery.

If the cell indicated by the Direction parameter is empty, the condition is true. Otherwise, the condition is false.




In its search for wood, the Termite agent in the Termites project checks if the area to the right or left is empty and has a certain chance (percentage) of moving to that empty position.

See the Termites simulation.

| Next | Previous | Reference Manual | Getting Started Manual |