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

Hey whats guys..! I have a task to do which is: Using a 2 dimensional array crea

ID: 3545311 • Letter: H

Question

Hey whats guys..! I have a task to do which is:

Using a 2 dimensional array create a path from array [0][0] to the opposite corner. Repeatedly get a random number representing one of 8 possible moves. A legal move is one that moves forward, and does not run into the "edge" of the array. If the move is illegal the process starts over with location [0][0]. Going forward is defined as the sum of the two array indexes either increasing or staying the same. Count the number of times it takes to create a legal a legal path from beginning to the end, and print the array to the screen showing the path that was successful. Allow the client to repeatedly play the game and choose the size of the two dimensional array.

Explanation / Answer

Deadline for this ?