Skip to content

pair-of-Ms/mars-rover-kata-step-by-step-2017-05

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

74 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Mars Rover implementation exercise

Description

In this exercise we'll implement from scratch part of the Mars Rover kata.

This is a summary of the part of the behavior of the rover that we'll implement:

  • It's located on a grid at some point with coordinates (x,y) and facing a direction encoded with a character.

  • The meaning of each direction character is:

    • N -> North
    • S -> South
    • E -> East
    • W -> West
  • The rover receives a sequence of commands (a string of characters) which are codified in the following way:

    • When it receives an f, it moves forward one position in the direction it is facing.
    • When it receives a b, it moves backward one position in the direction it is facing.
    • When it receives a l, it turns left changing its direction (by one step in the direction).
    • When it receives a r, it turns right changing its direction (by one step in the direction).

About

Step by step approach to the Mars Rover Kata

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages