Преглед на файлове

Add comments for IntructionPointer's move function

ApisNecros преди 1 година
родител
ревизия
4ebe7e86d1
променени са 1 файла, в които са добавени 3 реда и са изтрити 0 реда
  1. 3 0
      src/pointer.ts

+ 3 - 0
src/pointer.ts

@@ -100,6 +100,9 @@ export class InstructionPointer {
         this.changeDirection(Object.keys(this.directions)[Math.floor(Math.random() * 4)] as OrdinalDirection);
     }
 
+    /**
+     * Move the InstructionPointer one step in its current direction
+     */
     public move() {
         this.X += this.currentVector[0];
         this.Y += this.currentVector[1];