Talk Back (Text Adventure)

Any line that is not a valid go <direction prints I don't understand: <line. Blank lines are ignored. Print the final x y at the end.

Input: Command lines until end of input.

Output: Complaints as they happen, then x y.

Difficulty: Medium. 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

  • Validate both the verb and the direction.

More Text Adventure practice