diff --git a/DEV4.1/tp1/modules/Ant.js b/DEV4.1/tp1/modules/Ant.js index 8e5fb40..49a3293 100644 --- a/DEV4.1/tp1/modules/Ant.js +++ b/DEV4.1/tp1/modules/Ant.js @@ -61,7 +61,14 @@ class Ant { computeNextState() { - // TODO + if (this.tiles == 0) { + this.rotateRight(); + this.tiles = 1; + } + else{ + this.rotateLeft(); + this.tiles = 0; + } } }