Skip to content

Instantly share code, notes, and snippets.

@xenda
Created June 20, 2012 05:52
Show Gist options
  • Save xenda/2958341 to your computer and use it in GitHub Desktop.
Save xenda/2958341 to your computer and use it in GitHub Desktop.
parser = ControlParser.new("input.txt")
rovers = parser.rovers
commands = parser.commands
controller = RoversController.new(rovers, commands)
controller.execute_orders
outputter = RoversOutputter.new(rovers)
outputter.save("output.txt")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment