diff options
| author | tslil clingman <tslil@posteo.de> | 2021-01-29 14:05:06 -0500 |
|---|---|---|
| committer | tslil <tslil@posteo.de> | 2026-08-28 19:37:41 +0100 |
| commit | fcface1079b1c44c7ccca3d117c698347c978f20 (patch) | |
| tree | f0bb660537801a05d591e34db9f705db985dd3d3 /src/pptdb.c | |
| parent | 6c1154d80e7f7a04444d01d97942ac9e8138297a (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++]!=','); |
