Wednesday 29 October 2008

Poison and death. (What a lovely blog title!)


Been working on the count functionality that determines whether an organism has too much poison in its body.
It's an if statement really... this is the (very basic) pseudocode.

BEGIN A LOOP
If your poison count is more than 3, you're dead.
Else, move squares and eat.
If the square you ate is poisonous, add one to your poison count.
Repeat the loop.
END THE LOOP

No comments: