Question: This is a JAVASCRIPT question. Please give a helpful answer. I am confused on placing adventurer in the array. Create an object that represents the

This is a JAVASCRIPT question. Please give a helpful answer. I am confused on placing adventurer in the array.
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. 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.
 This is a JAVASCRIPT question. Please give a helpful answer. I

Text Adventure Game: This homework assignment involves a JavaScript text adventure game. Create a 8x8 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. P1 P2

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!