A simulation of a robot moving on a board (of default size 5x5 points).
Add this line to your application's Gemfile:
gem 'hal9000'
And then execute:
$ bundle
Or install it yourself as:
$ gem install hal9000
You can create new instance of Hal9000 by running:
hal = Hal9000.new
After that you can either parse a file for commands using:
hal.parse_file('path/to/file')
or use commands: place(x, y, direction)
, left
, right
, move
, report
.
After checking out the repo, run bin/setup
to install dependencies. Then, run rake rspec
to run the tests. You can also run bin/console
for an interactive prompt that will allow you to experiment.
The gem is available as open source under the terms of the MIT License.