Skip to content

ellehallal/ruby-mars-rover

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ruby Mars Rover

Installation

Requirements:

Clone this repo, and run:

bundle install

Start

To start the app with the sample instructions (located in ./lib/input.txt) run:

ruby lib/main.rb

Testing

The testing library used is RSpec. To run the tests:

rspec

Test Coverage

In the terminal run rspec to generate the report, then run open coverage/index.html to open the report in the browser.

Linting

The linter used is Rubocop. Run:

rubocop

Next Steps

Input Validation

  • Checking the coordinate values are 50 or less
  • Checking the instruction strings are less than 100 characters in length
  • Checking the orientation valid (N, S, E or W)
  • Checking each direction is valid (L, R or F)

Parsing Input

  • Consider the possibility of whitespace on each input line

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages