I just started to learn arrays in my Computer Science class. Well now I have to write a game called "Moles and Mazes." The mole is in a grid with 8 rows and 8 columns. The mole starts his adventure at row 3, column 2. The escape route is at row 3, column nine.
The program will generate a random number between 1 and 4(I know how to do that). Number 1=right, 2=up, 3=left, 4=down. (I know how to do this, I think. I was going to try and use a case statement, or an if statement.
I do not know how to begin the program though, and here is why. The program is supposed to play 500 games and print out each escape path using a coordinate system (3, 2) (3,4) (4,4)..... (3,9)
The next part says to store the game paths in two separate one dimensional arrays named row and column.
So basically I don't know how to make it play a max of 500 games and display how many games were won and how the mole achieved to win(show the coordinates). I also don't know how to score the escape path into the two arrays. Can someone please help me get started with this? I usually post my code when I have a question but this one has me stuck. Thank you!