First Steps (Text Adventure)
The hero starts at 0 0. Read command lines until the input ends: go north|south|east|west moves one step (north is y+1, east is x+1). Print the final x y.
Input: Lines of commands until end of input.
Output: x y.
Difficulty: Easy. Write your answer in the browser editor, run the examples, then submit it against hidden tests. Python and JavaScript are free; other languages are part of licode Club.
Hint
- Read all lines, not a fixed count.