Object-Oriented Programming · Square · Easy
Implement a square game board of size n x n that supports being printed out. Put a player somewhere on this board; at any moment the player is oriented toward one of the four directions. Next, you receive a string of commands. Each command either moves the player or turns the player to change which way they are facing. Carry out the commands in order. When every command has been processed, print the player's final location on the board along with the direction they are…