Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Robot

A simple toy robot simulator with a CLI and tests.

Setup

  1. Install dependencies:
bundle install
  1. Run the CLI:
ruby ./cli.rb
  1. Run tests:
bundle exec rspec

Commands

  • PLACE 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.

Coordinate System

  • The origin (0,0) represents the south-west corner of the table.
  • x increases to the EAST; y increases to the NORTH.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages