When I try to write a script for run_cmds, I find g and genmove can only run once, then the program will exit. Other commands don't have this problem. In cnnPlayerV2Framework.lua, line 664, g or genmove will return the "win_rate"(between 0 and 1), and in line 339, win_rate is read as quit, thus always return true and exit. When I delete the "win_rate" in line 664, it seems worked fine.
When I try to write a script for run_cmds, I find g and genmove can only run once, then the program will exit. Other commands don't have this problem. In cnnPlayerV2Framework.lua, line 664, g or genmove will return the "win_rate"(between 0 and 1), and in line 339, win_rate is read as quit, thus always return true and exit. When I delete the "win_rate" in line 664, it seems worked fine.