aboutsummaryrefslogtreecommitdiff
path: root/src/pptdb.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pptdb.c')
-rw-r--r--src/pptdb.c11
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++]!=',');