hi i have a problem i have been trying to figure out for a few days now and i am drawing up a blank. I have to code below which i have to admit is not my own.
i have this saved as move.lua
local robot = require('robot')
local component = require('component')
local move = {}
local commands = {}
commands['f'] = robot.forward
commands['b'] = robot.back
commands['u'] = robot.up
commands['d'] = robot.down
commands['tl'] = robot.turnLeft
commands['tr'] = robot.turnRight
commands['ta'] = robot.turnAround
commands['s'] = robot.swing
commands['sd'] = robot.swingDown
commands['su'] = robot