summaryrefslogtreecommitdiff
path: root/src/pptdb.c
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/pptdb.c
parent4ec810a2bb0ed393e59e0a03f8c98ec09805e989 (diff)
Changed function back to macro
Diffstat (limited to 'src/pptdb.c')
-rw-r--r--src/pptdb.c4
1 files changed, 2 insertions, 2 deletions
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);
}