fen_strings #1

Merged
djweber12 merged 6 commits from fen_strings into master 2024-10-04 21:42:35 -04:00
Showing only changes of commit fafdad7290 - Show all commits

View File

@ -90,12 +90,12 @@ char * fen_string_get_state(void)
}
fen_append(' ');
char options[2][2] = {{'K', 'Q'}, {'k', 'q'}};
bool castle = true;
bool castle = false;
for(int color = 0; color < 2; color++){
for(int k_q = 0; k_q < 2; k_q++){
if(state->castling_allowed[color][k_q])
{
castle = false;
castle = true;
fen_append(options[color][k_q]);
}
}