Quellcode durchsuchen

Implement `

Finished implementing the fisherman instruction, and added examples to
go along with it.
ApisNecros vor 1 Jahr
Ursprung
Commit
c329b611a4
2 geänderte Dateien mit 17 neuen und 2 gelöschten Zeilen
  1. 16 1
      examples.txt
  2. 1 1
      starfish.js

+ 16 - 1
examples.txt

@@ -52,4 +52,19 @@ o;!?l<
 R
 
 ;; Test dive and rise instructions
-"Hello, world!"r>Ool?u!|;
+"Hello, world!"r>Ool?u!|;
+
+;; Basic test of the fisherman
+"Hi"r`;
+  l?!`o
+
+;; demo of fisherman's behavior when the IP movement is up/down
+"hi"`
+    `roo!/<
+         "
+         e
+         y
+         b
+          
+         "
+    ;oooo`

+ 1 - 1
starfish.js

@@ -372,7 +372,7 @@ class CodeBox {
                     this.hasDove = false;
                     break;
                 case "`":
-                    // TODO
+                    this.Fisherman();
                     break;
                 // Movement
                 case "^":