waaronmorris / CS162_Group_15_Project_1

0 stars 1 forks source link

DoodleBug Move Function #3

Open waaronmorris opened 6 years ago

waaronmorris commented 6 years ago

For every time step, the doodlebug will firstly try to move to an adjacent cell containing an ant and eat the ant (you can decide if there are several ants in the adjacent cells, how the doodlebug will choose to move). If there are no ants in adjacent cells, the doodlebug moves according to the same rules as the ant. Note that a doodlebug cannot eat other doodlebugs.