From fcface1079b1c44c7ccca3d117c698347c978f20 Mon Sep 17 00:00:00 2001 From: tslil clingman Date: Fri, 29 Jan 2021 14:05:06 -0500 Subject: Syntax errors, small tweak to training data generation --- src/pptdb.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src/pptdb.c') diff --git a/src/pptdb.c b/src/pptdb.c index b5bdfa4..ecf5caa 100644 --- a/src/pptdb.c +++ b/src/pptdb.c @@ -133,12 +133,13 @@ parse_line(const char *pt, const ssize_t read) { } } } - // Generate training data, not too early in the game, random - // orientation + // Generate training data, not too early in the game, all + // orientations if (generate && ply + 4 >= total_plies) { - int dx = (rand()&1)?-1:+1; - int dy = (rand()&1)?-1:+1; - write_input(dx,dy); + write_input(-1,-1); + write_input(-1,+1); + write_input(+1,-1); + write_input(+1,+1); } // Parse next action while (idx