├── .rspec ├── .rubocop.yml ├── Gemfile ├── Gemfile.lock ├── README.md ├── lib ├── commander.rb ├── commands │ ├── base_command.rb │ ├── left_command.rb │ ├── move_command.rb │ ├── place_command.rb │ ├── report_command.rb │ └── right_command.rb ├── main.rb ├── position.rb ├── robot.rb └── table.rb ├── spec ├── commander_spec.rb ├── commands │ ├── left_command_spec.rb │ ├── move_command_spec.rb │ ├── place_command_spec.rb │ ├── report_command_spec.rb │ └── right_command_spec.rb ├── position_spec.rb ├── robot_spec.rb ├── spec_helper.rb └── table_spec.rb └── test_data └── test_data.txt /.rspec: -------------------------------------------------------------------------------- 1 | --color 2 | --require spec_helper 3 | --format documentation 4 | -------------------------------------------------------------------------------- /.rubocop.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RafaelChefe/toy_robot/HEAD/.rubocop.yml -------------------------------------------------------------------------------- /Gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RafaelChefe/toy_robot/HEAD/Gemfile -------------------------------------------------------------------------------- /Gemfile.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RafaelChefe/toy_robot/HEAD/Gemfile.lock -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RafaelChefe/toy_robot/HEAD/README.md -------------------------------------------------------------------------------- /lib/commander.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RafaelChefe/toy_robot/HEAD/lib/commander.rb -------------------------------------------------------------------------------- /lib/commands/base_command.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RafaelChefe/toy_robot/HEAD/lib/commands/base_command.rb -------------------------------------------------------------------------------- /lib/commands/left_command.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RafaelChefe/toy_robot/HEAD/lib/commands/left_command.rb -------------------------------------------------------------------------------- /lib/commands/move_command.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RafaelChefe/toy_robot/HEAD/lib/commands/move_command.rb -------------------------------------------------------------------------------- /lib/commands/place_command.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RafaelChefe/toy_robot/HEAD/lib/commands/place_command.rb -------------------------------------------------------------------------------- /lib/commands/report_command.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RafaelChefe/toy_robot/HEAD/lib/commands/report_command.rb -------------------------------------------------------------------------------- /lib/commands/right_command.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RafaelChefe/toy_robot/HEAD/lib/commands/right_command.rb -------------------------------------------------------------------------------- /lib/main.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RafaelChefe/toy_robot/HEAD/lib/main.rb -------------------------------------------------------------------------------- /lib/position.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RafaelChefe/toy_robot/HEAD/lib/position.rb -------------------------------------------------------------------------------- /lib/robot.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RafaelChefe/toy_robot/HEAD/lib/robot.rb -------------------------------------------------------------------------------- /lib/table.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RafaelChefe/toy_robot/HEAD/lib/table.rb -------------------------------------------------------------------------------- /spec/commander_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RafaelChefe/toy_robot/HEAD/spec/commander_spec.rb -------------------------------------------------------------------------------- /spec/commands/left_command_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RafaelChefe/toy_robot/HEAD/spec/commands/left_command_spec.rb -------------------------------------------------------------------------------- /spec/commands/move_command_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RafaelChefe/toy_robot/HEAD/spec/commands/move_command_spec.rb -------------------------------------------------------------------------------- /spec/commands/place_command_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RafaelChefe/toy_robot/HEAD/spec/commands/place_command_spec.rb -------------------------------------------------------------------------------- /spec/commands/report_command_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RafaelChefe/toy_robot/HEAD/spec/commands/report_command_spec.rb -------------------------------------------------------------------------------- /spec/commands/right_command_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RafaelChefe/toy_robot/HEAD/spec/commands/right_command_spec.rb -------------------------------------------------------------------------------- /spec/position_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RafaelChefe/toy_robot/HEAD/spec/position_spec.rb -------------------------------------------------------------------------------- /spec/robot_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RafaelChefe/toy_robot/HEAD/spec/robot_spec.rb -------------------------------------------------------------------------------- /spec/spec_helper.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RafaelChefe/toy_robot/HEAD/spec/spec_helper.rb -------------------------------------------------------------------------------- /spec/table_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RafaelChefe/toy_robot/HEAD/spec/table_spec.rb -------------------------------------------------------------------------------- /test_data/test_data.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RafaelChefe/toy_robot/HEAD/test_data/test_data.txt --------------------------------------------------------------------------------