Question: Create a 8 x 8 game map on which an adventurer is placed (randomly). The goal of the adventurer is to exit the game with

Create a 8 x 8 game map on which an adventurer is placed (randomly). The goal of the adventurer is to exit the game with two prizes. The adventurer moves one square at a time (left, right, up down) and encounters either an obstacle (can't move there), a prize, or a challenge. The challenge involves asking the user if they want to take the challenge or back out

Question : Randomly assign a starting and goal location (indicate with a 'S' and 'G' respectively). Make sure they do not fall on the same square, or on any square taken by a prize, wall or adventure. Place these in the matrix and Create an object that represents the adventurer. This includes how many hit points she has left, current location on map (in terms of row and column), and an array of prizes.

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!