Answer to Question #76610 in C for tlg

Question #76610
Player who has health (integer) and a position (structure). Position structure must have two values (int x and int y). Player’s health will be initialized to 100 and player’s position will be initialized to (8, 8).
The map which the player will move must be a 2D structure matrix. This matrix must have 15 rows and 15 columns. Each cell in the matrix should consist of two integer values. These integer values must be initialized to 0.
W up: Increases the y coordinate of the player by 1
S down: Decreases the y coordinate of the player by 1
A left: Decreases the x coordinate of the player by 1
D right: Increases the x coordinate of the player by 1
There must be 30 enemies and 10 tokens. Both token and enemy coordinates are all random. Damage value varies between 1 to 30 which should be set randomly. Values of tokens may differ between -5 to 10, 0 excluded. After initialization of the map these values must be placed into map.
Full assignment : https://www.dropbox.com/s/pvfws9n3sm0fumh/HW.doc?dl=0
1
Expert's answer
2018-04-26T07:39:25-0400
Dear tlg, your question requires a lot of work, which neither of our experts is ready to perform for free. We advise you to convert it to a fully qualified order and we will try to help you. Please click the link below to proceed: Submit order

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS