summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortslil <tslil@posteo.de>2021-01-15 16:16:52 -0500
committertslil <tslil@posteo.de>2021-01-15 16:16:52 -0500
commit2f6b5d5ba8e1ffb627bb146238b1566ec53241a4 (patch)
treeb735539db0e8ad18e9a1747fd45da9ba6f9969ee /src
parent9377cf833ba6b46b3fbb5cdfd22a4cf918e92837 (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);
}