Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Relational Database Design A Practical Approach

Authors: Marilyn Campbell

1st Edition

1587193175, 978-1587193170

More Books

Students also viewed these Databases questions