From 232013bda72120f69c1780c4af381884ca111ef4 Mon Sep 17 00:00:00 2001 From: tslil clingman Date: Thu, 21 Jan 2021 00:11:01 -0500 Subject: Experimenting --- src/ctaklm.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/ctaklm.c') 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 , ."); } 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 , ."); 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; -- cgit v1.3.1