Browse Source

Reset dirWasLeft on re-run

ApisNecros 1 year ago
parent
commit
815d0de575
1 changed files with 1 additions and 0 deletions
  1. 1 0
      starfish.js

+ 1 - 0
starfish.js

@@ -139,6 +139,7 @@ class CodeBox {
         this.curr_stack = 0;
         this.pointer = {X: 0, Y: 0};
         this.curr_direction = this.directions.EAST;
+        this.dirWasLeft = false;
         this.outputDOM.value = "";
         console.clear();