diff options
| author | tslil clingman <tslil@posteo.de> | 2021-01-18 14:52:14 -0500 |
|---|---|---|
| committer | tslil <tslil@posteo.de> | 2026-08-28 19:37:41 +0100 |
| commit | 9c56a2c16bce2a7011994bb9f4a62c3ad2fef2df (patch) | |
| tree | 3c3f50a941db217d972950cce324947b6b0ae129 /src/pptdb.c | |
| parent | a8f69f1262bd76ab311ebe760f314fa6e4526d15 (diff) | |
Added tunable search depth and self-play
Diffstat (limited to 'src/pptdb.c')
| -rw-r--r-- | src/pptdb.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/pptdb.c b/src/pptdb.c index 5c5c718..0c8673d 100644 --- a/src/pptdb.c +++ b/src/pptdb.c @@ -115,14 +115,9 @@ parse_line(const char *pt, const ssize_t read) { } // Generate training data, not too early in the game if (generate && ply + 4 >= total_plies) { - /* - * int dx = (rand()&1)?-1:+1; - * int dy = (rand()&1)?-1:+1; - */ - write_input(1,1); - write_input(1,-1); - write_input(-1,1); - write_input(-1,-1); + int dx = (rand()&1)?-1:+1; + int dy = (rand()&1)?-1:+1; + write_input(dx,dy); } // Parse next action while (idx<read && pt[idx++]!=','); |
