From: Olav Bakke Svendsen Date: Wed, 15 May 2024 18:03:28 +0000 (+0200) Subject: lib/turtle-utils.lua: renamed commandMap to movementMap X-Git-Tag: skystone~8 X-Git-Url: http://git.olavbs.no/?a=commitdiff_plain;h=85719c0ab8054dedf9bd5966a2843abdddeddace;p=cc.git lib/turtle-utils.lua: renamed commandMap to movementMap --- diff --git a/lib/turtle-utils.lua b/lib/turtle-utils.lua index b860555..2d79f54 100644 --- a/lib/turtle-utils.lua +++ b/lib/turtle-utils.lua @@ -9,7 +9,7 @@ -- count : list of item names -> count -- selectItem : list of item names -> true | false message -- transferAndSelect : index -> list of items -> true | false message --- commandMap : t f +-- movementMap : t f -- runStringCommand : string -> true | false message -- rep : number of repeats -> string -> string | nil @@ -117,8 +117,8 @@ end -- "u15 r" = 15x up -> turn right -- "u1 5r" = invalid --- commandMap : t f -lib.commandMap = +-- movementMap : t f +lib.movementMap = { ["u"] = turtle.up , ["d"] = turtle.down , ["f"] = turtle.forward