Post the code with the errors and the error messages.
if direction=east
col++
else if direction=south
row++
else if direction=west
col--
else if direction=north
row--
Type: Posts; User: Norm
Post the code with the errors and the error messages.
if direction=east
col++
else if direction=south
row++
else if direction=west
col--
else if direction=north
row--
What step are you working on? What problems are you having with that step?
Take the first step: move forward 1 space
That means there must be a direction for "forward" and a location.
To move in...
What have you tried?
Define what the method is supposed to do. Make a list of steps it needs to do and try coding them one at a time.
That looks a lot better. One small problem is the excessive spaces for the indentions. 3-4 is enough.
That probably because your IDE uses tabs instead of spaces and the tabs on the forum are...
Make a list of the steps the code must take to solve the problem. Start with the first one.
Code it, compile it, fix the errors, execute it, fix the errors.
When it executes without errors move to...
Please ask some specific questions about the code and the problems you are having.
The posted code in post#7 needs formatting. Nested statements should be indented 3-4 spaces.
Please ask some specific questions about the code and the problems you are having.
The posted code needs formatting. Nested statements should be indented 3-4 spaces.
Please ask some specific questions about the code and the problems you are having.
Please edit your post and wrap your code with code tags:
<YOUR CODE HERE>
to get highlighting and...