- π©πΌβπ Estela Medrano.
- I love π€.
-
Linkedin | estela-medrano-jimΓ©nez-52563776: go...
-
GitHub | @divae: go..
-
Twitter | @EstelaYoMisma: go..
-
Blog | enfamilialohacemosmejor go..
- π Ruby and RSpec with Bundle.
- π― I will use some of the requeriments of Kata-log Website (go)
------------------------------------
-2, 2 | -1, 2 | 0, 2 | 1, 2 | 2, 2
-+ ------------------------------------ ++
-2, 1 | -1, 1 | 0, 1 | 1, 1 | 2, 2
------------------------------------
-2, 0 | -1, 0 | 0, 0 | 1, 0 | 2, 0
------------------------------------
-2,-1 | -1,-1 | 0,-1 | 1,-1 | 2,-2
-- ------------------------------------ +-
-2,-2 | -1,-2 | 0,-2 | 1,-2 | 2,-2
Youβre part of the team that explores Mars by sending remotely controlled vehicles to the surface of the planet. Develop an API that translates the commands sent from earth into instructions that are understood by Eva.
- πΉοΈ Given the initial starting point (0,0) of a Eva and the direction (N) it is facing.
- π‘ Eva receives a character array of commands(f,b,r,l).
- ππ Implement commands that move Eva forward/backward.
- ππ Implement commands that turn Eva left/right.
- π Implement wrapping from one edge of grid to another. (planets are spheres after all)
- π Implement changes of direction('N', 'S', 'E', 'W')
The Strategy is that in the world there can only be one robot that can move in all directions.
- The class game generates the robot at the point and checks that everything is well integrated in the tests.
- The first time it lands at point 0.0 of the plane heading north.
- Knows how to move around the plane using position and direction vectors.
- Knows how to move around the plane using position and direction vectors.
- It is the class in charge of changing the position of the robot using the point and direction classes to generate the new coordinatee.
- It tells the robot where it is and in which direction.
- Coordinate axis handler.
- Knows how the axes are modified with direction in mind.
$ rspec
- Change method "change" in Vector classes, I think it would be good to apply the command pattern to simplify that code and make it clearer.
- An interface for the address classes would ensure that they all have the same methods.