matthewJamesAbbott / Chess

A chess game that can be played in XWindows or Terminal
1 stars 0 forks source link

more bias against white in movePiece function #22

Open matthewJamesAbbott opened 2 years ago

matthewJamesAbbott commented 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;
           }
       }
   }