diff options
| author | tslil clingman <tslil@posteo.de> | 2021-01-29 14:05:06 -0500 |
|---|---|---|
| committer | tslil <tslil@posteo.de> | 2021-01-29 14:05:47 -0500 |
| commit | e5fc8bbb6c127d8b08249bb4855d958e575eae01 (patch) | |
| tree | f0bb660537801a05d591e34db9f705db985dd3d3 /src/pptdb.c | |
| parent | 0ce9856d34c58f6cb9c38281e04d1c4cbd09804c (diff) | |
Syntax errors, small tweak to training data generation
Diffstat (limited to 'src/pptdb.c')
| -rw-r--r-- | src/pptdb.c | 11 |
1 files changed, 6 insertions, 5 deletions
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<read && pt[idx++]!=','); |
