check captures + promotions done?
This commit is contained in:
+2
-3
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user