diff options
| author | tslil <tslil@posteo.de> | 2021-01-11 01:29:39 -0500 |
|---|---|---|
| committer | tslil <tslil@posteo.de> | 2021-01-11 01:29:39 -0500 |
| commit | 036324d25b3ea973fe256d68e3c511848df6834c (patch) | |
| tree | 6358f2ceaee1b961b77380bc94fd92c950ea8c85 /src/ctaklm.c | |
| parent | 527a632345f8d81b1778e0ec7237941a475cc47c (diff) | |
Close in principle, but there;s a bug in ct1997 &/ pptdb!
Diffstat (limited to 'src/ctaklm.c')
| -rw-r--r-- | src/ctaklm.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ctaklm.c b/src/ctaklm.c index 3d4310c..346b5a5 100644 --- a/src/ctaklm.c +++ b/src/ctaklm.c @@ -4,6 +4,7 @@ #include <linenoise.h> #include <tak.h> +#include <ct1973.h> const char *blk = "\033[41m", *wht = "\033[44m"; const char *rev = "\033[7m", *und = "\033[4m", *rst = "\033[0m"; @@ -310,6 +311,8 @@ main(int argc, char **argv) { print_board(); } else if (!strncmp(line,"info",5)) { print_info(); + } else if (!strncmp(line,"eval",5)) { + printf("Valuation: %.6f\n", evaluate_black_win()); } else if (!strncmp(line,"log",3)) { puts(gamelog); } else if (!strncmp(line,"load",4)) { |
