summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortslil <tslil@posteo.de>2021-01-15 16:16:52 -0500
committertslil <tslil@posteo.de>2026-08-28 19:37:41 +0100
commitf5df4d3710c94822a6602a3e4936287ea5d61bab (patch)
treeb735539db0e8ad18e9a1747fd45da9ba6f9969ee /src
parent4ec810a2bb0ed393e59e0a03f8c98ec09805e989 (diff)
Changed function back to macro
Diffstat (limited to 'src')
-rw-r--r--src/ctaklm.c2
-rw-r--r--src/pptdb.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/ctaklm.c b/src/ctaklm.c
index 7ee86ec..40d16fb 100644
--- a/src/ctaklm.c
+++ b/src/ctaklm.c
@@ -410,7 +410,7 @@ main(int argc, char **argv) {
if (human && line == NULL) {
playing = 0;
} else {
- ct1986_turn(1);
+ ct1986_turn(2);
human = 1;
}
}
diff --git a/src/pptdb.c b/src/pptdb.c
index 345b995..5358885 100644
--- a/src/pptdb.c
+++ b/src/pptdb.c
@@ -9,7 +9,7 @@ uint64_t heights[16];
FILE *training_fh = NULL;
int generate, outcome_black;
-const int max_depth = 8;
+const int max_depth = 6;
static void
write_input(void) {
@@ -105,7 +105,7 @@ parse_line(const char *pt, const ssize_t read) {
}
}
// Generate training data, not too early in the game
- if (generate && ply + 7 > total_plies) {
+ if (generate && ply + 6 >= total_plies) {
write_input();
fprintf(training_fh,"%d\n", outcome_black);
}