Question: I'm a java noob that is trying to understand a problem. How can you solve the below problem only using the main (no functions?) Write

I'm a java noob that is trying to understand a problem. How can you solve the below problem only using the main (no functions?)

Write a java program with a 2D array of 6*6. You should randomise a starting point and change the value from 0 to 1 in the array where you start. 1. The program now needs to make me walk all around the board at random (forward, backward, right or left) and stop when I've stepped on all the tiles in the array. When it's done that the output needs to show how many steps it's taken me to walk around. I also can't walk off the board, if I try, that isn't counted a step.

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!