Browse Source

Implement `

Finished implementing the fisherman instruction, and added examples to
go along with it.
ApisNecros 1 year ago
parent
commit
c329b611a4
2 changed files with 17 additions and 2 deletions
  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 "^":