Question: Using Python how would u do Part A Server A. Create a server that will hold the following information for each player in a list

Using Python how would u do Part A

Using Python how would u do Part A Server A. Create a

Server A. Create a server that will hold the following information for each player in a list a. b. c. d. Player ID (Will be the index of the player array) Position X Position Y Coins B. The server will have a 2D array of characters spaces for open ground and " for walls. C. The server will assign an empty place for the player D. If the server receives a player input you will try to change the Position X and Position Y variables accordingly a. Remember with arrays it is Column, Row notation. Therefore the "Y" value would go second. Also remember 0,0 is the top left index. b. E. The Server will also have various places in the maze with a lower-case o. This will represen a coin F. If a player moves onto this position then their Coin variable increases by one G. The coin will be a space when the player moves off it. H. The server will accept "CMD," with a "W', "A, "S", or "D" at the end, representing the direction the player wants to move. I. The player cannot move out of the maze or onto a wall. J. When the server receives a command it will return the maze with each player at the correct position, marked by their player ID If the Client sends "SCORE", the server will return a list of player IDs and their scores. K. Server A. Create a server that will hold the following information for each player in a list a. b. c. d. Player ID (Will be the index of the player array) Position X Position Y Coins B. The server will have a 2D array of characters spaces for open ground and " for walls. C. The server will assign an empty place for the player D. If the server receives a player input you will try to change the Position X and Position Y variables accordingly a. Remember with arrays it is Column, Row notation. Therefore the "Y" value would go second. Also remember 0,0 is the top left index. b. E. The Server will also have various places in the maze with a lower-case o. This will represen a coin F. If a player moves onto this position then their Coin variable increases by one G. The coin will be a space when the player moves off it. H. The server will accept "CMD," with a "W', "A, "S", or "D" at the end, representing the direction the player wants to move. I. The player cannot move out of the maze or onto a wall. J. When the server receives a command it will return the maze with each player at the correct position, marked by their player ID If the Client sends "SCORE", the server will return a list of player IDs and their scores. K

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!