A hacked together project to get my feet wet with ComputerCraft, Lua, and to get some ideas for Hive.
- Runs a continuous loop listening for RedNet messages and responding to them
- Maintains a list of all registered turtles
- Maintains a list of tasks
- Assigns pending tasks to idle turtles
- idle
- assigned
- running
- pending
- assigned
- running
- incomplete
- complete
qturtle.lua Encapsulated in qTurtle object that the individual turtles can instantiate
- Registers with the server
- Provides move commands that handle fuel level monitoring and refueling
- Notifies server if out of fuel, if no longer out of fuel
Instance of a turtle object dean.lua
- Instantiates qTurtle object
- Registers with server
- Demonstrates movement methods
client.lua Command line interface between the player and the server. Provides the following facilities:
- Add a task
- List tasks and turtles
- Query the status of a turtle
- Shutdown the server