53 lines
4.5 KiB
Java
53 lines
4.5 KiB
Java
package cat.hack3.codingtests.marsrover.ui;
|
|
|
|
public interface PresentationMessage {
|
|
String INTRO = """
|
|
░▒▓██████████████▓▒░ ░▒▓██████▓▒░░▒▓███████▓▒░ ░▒▓███████▓▒░ ░▒▓███████▓▒░ ░▒▓██████▓▒░░▒▓█▓▒░░▒▓█▓▒░▒▓████████▓▒░▒▓███████▓▒░
|
|
░▒▓█▓▒░░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░ ░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░ ░▒▓█▓▒░░▒▓█▓▒░
|
|
░▒▓█▓▒░░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░ ░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░░▒▓█▓▒▒▓█▓▒░░▒▓█▓▒░ ░▒▓█▓▒░░▒▓█▓▒░
|
|
░▒▓█▓▒░░▒▓█▓▒░░▒▓█▓▒░▒▓████████▓▒░▒▓███████▓▒░ ░▒▓██████▓▒░ ░▒▓███████▓▒░░▒▓█▓▒░░▒▓█▓▒░░▒▓█▓▒▒▓█▓▒░░▒▓██████▓▒░ ░▒▓███████▓▒░
|
|
░▒▓█▓▒░░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░ ░▒▓█▓▒░ ░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░ ░▒▓█▓▓█▓▒░ ░▒▓█▓▒░ ░▒▓█▓▒░░▒▓█▓▒░
|
|
░▒▓█▓▒░░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░ ░▒▓█▓▒░ ░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░ ░▒▓█▓▓█▓▒░ ░▒▓█▓▒░ ░▒▓█▓▒░░▒▓█▓▒░
|
|
░▒▓█▓▒░░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░▒▓███████▓▒░ ░▒▓█▓▒░░▒▓█▓▒░░▒▓██████▓▒░ ░▒▓██▓▒░ ░▒▓████████▓▒░▒▓█▓▒░░▒▓█▓▒░
|
|
|
|
Welcome to Mars Rover Command Line Interface!
|
|
|
|
Please, establish the Mars dimensions. Bear in mind the Mars-Coordinates-Representation is aligned with the following principles:
|
|
- Latitude is Y, starts from 1 on the top and goes down incrementally
|
|
- Longitude is X, starts from 1 on the left and goes to right incrementally
|
|
|
|
Here a graphical representation of a 3x3 map
|
|
|
|
1 2 3
|
|
1 1-1 1-2 1-3
|
|
2 2-1 2-2 2-3
|
|
3 3-1 3-2 3-3
|
|
|
|
""";
|
|
String READY_MESSAGE = """
|
|
|
|
Fantastic!
|
|
|
|
A GPS, named MarsMap, has been delivered to Rover, configured with:
|
|
- The size information of the planet
|
|
- The current location of the Rover in it
|
|
|
|
He now can start moving along the planet based on your commands
|
|
After every movement, he will check the GPS and report back the new position
|
|
About rotations, Rover has a build-in accelerometer, which let him know in what direction is pointing out at any moment
|
|
That's all for now. Have fun!
|
|
_
|
|
[ ]
|
|
( )
|
|
|>|
|
|
__/===\\__
|
|
//| o=o |\\\\
|
|
<] | o=o | [>
|
|
\\=====/
|
|
/ / | \\ \\
|
|
<_________>
|
|
|
|
(to continue, enter your name)
|
|
""";
|
|
}
|