8000 GitHub - vdeslandres/RoverKata: Rover on mars
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

vdeslandres/RoverKata

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 

Repository files navigation

Without any if

Kata03 : Rover on mars

Try to program without any 'if' help us to program on Open/closed principle.

Your mission is to program a rover. The rover need to move. A rover is on map with axis X and Y. It have a oriantation : north, south, east and west. Exemple : X = 0, Y = 0, Oriantation = North

-------
| | | |
-------
|^| | |
-------

Goals

  1. Rover need to rotate to the left. Exemple:*
-------
| | | |
-------
|<| | |
-------
  1. Rover need to rotate to the right. Exemple:
-------
| | | |
-------
|^| | |
-------
  1. Rover can move. Exemple:
-------
|^| | |
-------
| | | |
-------
  1. Rover can move back. Exemple:
-------
| | | |
-------
|^| | |
-------
  1. Rover can do 1,2,3 and 4 multiple time. Exemple:
-------
| | | |
-------
|>| | |
-------
  1. Rove can move to left. Exemple:
-------
|>| | |
-------
| | | |
-------
  1. Rove can move to right. Exemple:
-------
| | | |
-------
|>| | |
-------

About

Rover on mars

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0