Here is the relevant code. I really can't see what I'm doing wrong. I want to make sure the loop prints all squares on the board before I do anything with moves, since it's hard to generate the moves for a square it won't hit.
Code: Select all
for(int i = 0; i < 120;)
{
if((board[i] & 0x88) != 0)
{
cout << i << " Square not on board..." << endl;
i += 8;
continue;
}
else
{
cout << i << endl;
i++;
}
}