Question: Please help me write this in python. Use this list for the locations the player has been: history = [(0, 0), (0, 1), (0, 2),

Please help me write this in python.

Use this list for the locations the player has been: history = [(0, 0), (0, 1), (0, 2), (0, 3), (0, 4), (0, 5), (0, 6), (0, 5), (1, 5), (1, 4), (2, 4)]

The current position is (2, 4)

Please help me write this in python. Use this list for thelocations the player has been: history = [(0, 0), (0, 1), (0,

Thank you.

Print out a grid of characters, which shows a map of the area near your starting point. It will show the origin (0,0), your path, and the obstacles (once you've implemented that). Sometimes, the user may walk far enough away from the origin that part of their path is off the map; that's OK; we simply won't see that part of it. The map should always be exactly 11 characters wide, and 11 characters tall: it represents the world from (-5, -5) to (5,5). Draw a box around it, as I'll demonstrate in the example below. Print out the following characters: Print a + (plus) at the player's current location - even if it is also the origin. Print a * (asterisk) at the origin (that is, (0,0)), unless the player is there. Print a . at any location where the player has been, but which is not the origin or the player's current position. Print a X at any obstacle. (If you haven't implemented obstacles yet, then this doesn't doesn't apply to you yet.) Print a blank space otherwise. For example, if your stack contains (0,0), (1,0), (2,0), (2,1), (2,2)], and the only obstacle is at (1,2), then print the following: X+

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!