Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started