Answer to Question #76610 in C for tlg
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
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!