Open matthewJamesAbbott opened 2 years ago
this code needs to be adjusted so as to use playerSide rather than Black King
int kingX; int kingY; for(int e = 0; e < 8; e++){ for(int i = 0; i < 8; i++){ if(checkBoard.returnSquare(e,i) == "Black King"){ kingX = e; kingY = i; } } }
this code needs to be adjusted so as to use playerSide rather than Black King