aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortslil clingman <tslil@posteo.de>2021-01-21 00:11:01 -0500
committertslil <tslil@posteo.de>2026-08-28 19:37:41 +0100
commit232013bda72120f69c1780c4af381884ca111ef4 (patch)
treea5e30ed460329366137743ad46a65db44c7c1f36 /src
parent2ac4a6e1d3b6440de22d95f48454d6282c78726d (diff)
Experimenting
Diffstat (limited to 'src')
-rw-r--r--src/ctaklm.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/ctaklm.c b/src/ctaklm.c
index 24613e9..3392af4 100644
--- a/src/ctaklm.c
+++ b/src/ctaklm.c
@@ -234,7 +234,7 @@ handle_turn(char *line) {
static void
new_game(uint8_t size) {
reset_state(size);
- printf("New %dx%d game! ct1986 at search_depth %d.\n",
+ printf("New %dx%d game! ct1986 at search depth %d.\n",
size, size, search_depth);
if (gamelog) gamelog = realloc(gamelog, sizeof(char));
else gamelog = malloc(sizeof(char));
@@ -347,13 +347,13 @@ info, load, log, new, play (b|w), self-play, square <col><row>, <PTN>.");
} else if (!strcmp(line,"info")) {
print_info();
} else if (!strcmp(line,"eval")) {
- float eval = ct1986_evaluate_black_win()*100;
+ float eval = ct1986_evaluate_win()*100;
if (ply & 1) {
printf("Black heuristic chance: %s%.2f%s\n",
blk, eval, rst);
} else {
printf("White heruistic chance: %s%.2f%s\n",
- wht, 100-eval, rst);
+ wht, eval, rst);
}
} else if (!strcmp(line,"log")) {
puts(gamelog);
@@ -404,7 +404,7 @@ info, load, log, new, play (b|w), self-play, square <col><row>, <PTN>.");
human = 1 - (line[5] & 1);
new_game(5);
} else {
- puts("Usage: play (b|w).\n");
+ puts("Usage: play (b|w).");
}
} else {
return EXIT_FAILURE;
@@ -418,7 +418,7 @@ main(int argc, char **argv) {
(void)(argv);
human = 0;
- search_depth = 1;
+ search_depth = 3;
new_game(5);
char *line = NULL;