waaronmorris / CS162_Group_15_Project_1

0 stars 1 forks source link

Ant Move function #1

Open waaronmorris opened 6 years ago

waaronmorris commented 6 years ago

For every time step, the ants randomly move up, down, left, or right. If the neighboring cell in the selected direction is occupied or would move the ant off the grid, then the ant stays in the current cell.

waaronmorris commented 6 years ago

Maybe...we should break out and make function to check if the space is available (and what type of Critter is in it). I find myself having to rewrite the same code to check.