fixed always promoteing to one color

This commit is contained in:
k 2025-06-12 05:14:34 -04:00
parent 1d7d15fb52
commit 33592762a7

4
main.c
View File

@ -178,7 +178,9 @@ void playMoves(game *g, char *moves) {
if (tmp)
*tmp &= (~bit);
if (strlen(move) == 5) {
set = charToSet(g, move[4]);
char c = move[4];
c = toupper(c);
set = charToSet(g, c);
}
*set |= bit;