From dffb493d4f4dc5f85f26066558ee2518a2333783 Mon Sep 17 00:00:00 2001 From: Djeeberjr Date: Wed, 13 Apr 2022 21:40:33 +0200 Subject: [PATCH] added turtle instruction set --- src/lib/turtle/TurtleInstruction.hx | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/lib/turtle/TurtleInstruction.hx diff --git a/src/lib/turtle/TurtleInstruction.hx b/src/lib/turtle/TurtleInstruction.hx new file mode 100644 index 0000000..e5cb13e --- /dev/null +++ b/src/lib/turtle/TurtleInstruction.hx @@ -0,0 +1,17 @@ +package lib.turtle; + +import kernel.turtle.Types.InteractDirections; +import kernel.turtle.Types.TurtleSlot; + +enum TurtleInstruction { + Forward; + Back; + Up; + Down; + TurnLeft; + TurnRight; + Dig(dir: InteractDirections); + Place(dir: InteractDirections); + PlacseSign(dir: InteractDirections, text: String); + Select(slot: TurtleSlot); +}