Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Create a 8 times 8 matrix. This will be an array of arrays, where each sub array

ID: 3789843 • Letter: C

Question

Create a 8 times 8 matrix. This will be an array of arrays, where each sub array is a row of squares. Create challenge objects for each square that has one. This object should include: The monster/hazard's name, hit points for monster/hazard, the prize name, and a function that performs the challenge. This function should launch an input box and receive the input to ask whether the person wants to brave the challenge, and if the person chooses to, to determine the outcome. Texts regarding challenge should be put inside the prompt box. Also the function should ask the user whether they want to after the challenge is complete (think while loops). Place them in different places in the above matrix.

Explanation / Answer

function matrix(m, n) { var result = [] for(var i = 0; i