Question: In python make a program that supports 4 commands: n,e,s,w. Track the position of the player after every command as an (x,y) tuple, and print
In python make a program that supports 4 commands: n,e,s,w. Track the position of the player after every command as an (x,y) tuple, and print it out before waiting for the next command. You will, however, have to use try/except (see the Twine spec) to protect yourself against EOFError. Make sure to use a while loop with input() and try/except, or you will lose points.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
