[Solved] Why count outputs wrong chars from char array [closed]


initBoard doesn’t do anything.

for(int y = 0; y < 0; y++)

y starts at 0. 0 is not less than 0, so the loop does not run.

Put the size of your board (8) in a constant, then use that everywhere, and you’ll be less likely to use the wrong number.

0

solved Why count outputs wrong chars from char array [closed]