aboutsummaryrefslogtreecommitdiff
path: root/src/ct1986.c
diff options
context:
space:
mode:
authortslil clingman <tslil@posteo.de>2021-01-22 10:28:29 -0500
committertslil <tslil@posteo.de>2026-08-28 19:37:41 +0100
commit14edf3fa605d68601d154df57afb87ec2140cd03 (patch)
tree7c84f2bc38b7238bb77c2308d56eac29f29cad7b /src/ct1986.c
parent8461e5ebea6e899eb0643f34ff03d7797d1441bf (diff)
Should now play out to the end
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);
}
}