aboutsummaryrefslogtreecommitdiff
path: root/src/ctaklm.c
diff options
context:
space:
mode:
authortslil clingman <tslil@posteo.de>2021-01-21 01:37:07 -0500
committertslil <tslil@posteo.de>2026-08-28 19:37:41 +0100
commitbb4d6da7d75de116c2fb6bd50ed96d5c478afd66 (patch)
treed867ef7848f0eb00d86c3956522633eea6b394f7 /src/ctaklm.c
parente1c9a014420648b2799509016b4fc52dec19bc2d (diff)
Slight fix to game loop
Diffstat (limited to 'src/ctaklm.c')
-rw-r--r--src/ctaklm.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/ctaklm.c b/src/ctaklm.c
index da807c8..95d8678 100644
--- a/src/ctaklm.c
+++ b/src/ctaklm.c
@@ -440,13 +440,11 @@ main(int argc, char **argv) {
}
}
} else {
- read = -1;
- human = 1;
+ playing = 0;
+ break;
}
}
- if (read == -1) {
- playing = 0;
- } else {
+ if (playing) {
negamax_cnn1986_turn();
human = 0;
}