Greetings,
I'm hoping that i can get some help on an exercise I'm doing dealing with multidimensional arrays.
I want to move around a board and calculate how many steps I've taken on the board.
Input asks for the seed number and how many steps to take.
I just don't know what to do to make a point move.
It starts from the middle and the user does not need to say which direction to move. The program does randomly.
output:
board:
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
"How many steps? 3"
"Total steps taken: 3"
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 1 1 1 0 0 0 0
0 0 0 0 0 0 0 0
"How many steps? 2"
"Total steps taken: 5"
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 1 2 2 0 0 0 0
0 0 0 0 0 0 0 0
That's basically what I'm trying to make the program do. I'm having trouble figuring it out so i would love the help :/
NOTE: It's all basics, I have not reached dealing with Pointers yet....