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
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