/robot

Primary LanguageC#

Awesome Robot

This program simulates a Toy Robot.

How to run it

Run the console Application. The console will be expecting user inputs.

The available commands are:

  • PLACE X,Y,F
  • MOVE
  • LEFT
  • RIGHT
  • REPORT

PLACE will put the toy robot on the table in position X,Y and facing NORTH, SOUTH, EAST or WEST MOVE will move the toy robot one unit forward in the direction it is currently facing LEFT and RIGHT will rotate the robot 90 degrees in the specified direction without changing the position of the robot. REPORT will announce the X,Y and F of the robot