- 1
The pieces jump over the pawns
3 Answers
0
I think you can set a max height for the piece
0
@Faisal Isaka i meant that the pieces are ignoring the pawns and passing thru the squares as if they are not there
0
With in moveBishop() and moveQueen() functions there are several if, else and else if statements that are missing curly brackets, which just happen be the statements that have for/loops as part of the code block and for some reason the for/loops are also missing curly brackets.
As I have stated in your earlier post on the same problem you need to add the curly bracket to either the if, else and else if statements or/ and the for/loops.
https://code.sololearn.com/cXWms7IMiRsk
https://www.sololearn.com/discuss/3008189/?ref=app