A simple toy robot simulator with a CLI and tests.
- Install dependencies:
bundle install- Run the CLI:
ruby ./cli.rb- Run tests:
bundle exec rspecPLACE X,Y,F— Place the robot on the table.MOVE— Move forward in the current facing direction.LEFT/RIGHT— Rotate 90° left or right.REPORT— Print X,Y,F to stdout.EXIT— Quit the CLI.
- The origin (0,0) represents the south-west corner of the table.
- x increases to the EAST; y increases to the NORTH.