check captures + promotions done?

This commit is contained in:
Odweta
2026-02-18 16:51:14 +01:00
parent 44c38667a4
commit de55c98be3
3 changed files with 209 additions and 62 deletions
+2 -3
View File
@@ -22,6 +22,7 @@ int main() {
player_e player;
unsigned int round_count = 0;
end_condition_e end_condition;
captured_t captured = {.white_n = 0, .black_n = 0};
bool running = true;
// algo begin
@@ -37,9 +38,7 @@ int main() {
get_move(&move);
perform_move(&board, player, move);
end_condition = check_edge_cases(board);
end_condition = perform_move(&board, player, &captured, move);
if (end_condition == CHECKMATE || end_condition == STALEMATE) {
running = false;
}