- Open a terminal and navigate to the folder contains "explorer.go".
- Input
go build
in the terminal. - Run
./explorer
.
- Input the range for the landing area as
x y
and pressEnter
.x
andy
must be numeric. - Input the Explorer landing location as
x y Direction
and pressEnter
.x
andy
must be numeric andDirection
must be one ofN,S,E,W
. - Input the Explorer moving commands. The commands must be a string consists of
L
,R
,M
in any kind of order without space. PressEnter
to indicate your commands is ending. - Add extra explorers by repeating step 2 and step 3. Please remind a moving commands must be given after an Explorer landing location is given.
- Press
Enter
or inputDone
to view the results. - Input
Exit
to end the program immediately without any results printed out.