aboutsummaryrefslogtreecommitdiff
path: root/src/ct1986.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ct1986.c')
-rw-r--r--src/ct1986.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/ct1986.c b/src/ct1986.c
index 273fd98..40943db 100644
--- a/src/ct1986.c
+++ b/src/ct1986.c
@@ -102,7 +102,7 @@ negamax_cnn1986_turn() {
perc = 0;
float minimax = negamax_cnn1986_generate();
// Failed to find a move?
- if (minimax <= -infty) {
+ if (minimax < -infty) {
lcd_printf_line(L_SCROLL, "%s concedes!",
(ply & 1) ? "Black" : "White");
return EXIT_FAILURE;
@@ -110,8 +110,7 @@ negamax_cnn1986_turn() {
lcd_printf_line(L_SCROLL, "%s: %s",
(ply & 1) ? "Black" : "White",
negamax_cnn1986_ptn);
- handle_turn(negamax_cnn1986_ptn);
- return EXIT_SUCCESS;
+ return handle_turn(negamax_cnn1986_ptn);
}
}