diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/ctaklm.c | 10 |
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; |
