a
This commit is contained in:
@@ -61,7 +61,14 @@ class Ant {
|
||||
|
||||
computeNextState()
|
||||
{
|
||||
// TODO
|
||||
if (this.tiles == 0) {
|
||||
this.rotateRight();
|
||||
this.tiles = 1;
|
||||
}
|
||||
else{
|
||||
this.rotateLeft();
|
||||
this.tiles = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user