0

the question is this.
suppose that i have got
rowstart=8
rowend=6
columnstart=8
columnend=8

b=0

while(pieces[rowStart-b][columnStart]==null && pieces[rowStart-b][columnStart]!=pieces[rowEnd][columnEnd] && pieces[rowEnd][columnEnd]==null){ // CHECKS THE UPPER ROW.
								   b++;	 
								  
								    }
2
Contributors
2
Replies
3
Views
6 Years
Discussion Span
Last Post by NewOrder
0

What is the question?

To debug your code print out the value of this expression, of each of its sub expressions and of all of its variables:

(pieces[rowStart-b][columnStart]==null && pieces[rowStart-b][columnStart]!=pieces[rowEnd][columnEnd] && pieces[rowEnd][columnEnd]==null)

Edited by NormR1: n/a

0

no, i got the idea.

pieces[rowStart-b][columnStart]==null

i need to reduce rowStart by 1
cause b is 0
and
rowStart points at an object that i am trying to point at
so i need to come up with something like that. although it did give me an outofboundarray error. i have to try to rewrite the thing again.
pieces[rowStart-1-b][columnStart]==null

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.