endgame: 重新开局时如果下过的总盘数为0或者不是256的倍数就不记录到文件

不符合这个条件,就在程序退出时才记录;
之前是 TEST_MODE 宏开启才规定符合256的倍数就不记录,现在是不开启也是如此。
This commit is contained in:
Calcitem 2019-12-23 00:28:11 +08:00
parent 4504801dc6
commit 5bdc5dff65
1 changed files with 1 additions and 5 deletions

View File

@ -255,11 +255,7 @@ bool Game::reset()
cmdlist.clear();
#ifdef ENDGAME_LEARNING
if (gameOptions.getLearnEndgameEnabled()
#ifdef TEST_MODE
&& nPlayed % 256 == 0
#endif // TEST_MODE
) {
if (gameOptions.getLearnEndgameEnabled() && nPlayed != 0 && nPlayed % 256 == 0) {
AIAlgorithm::recordEndgameHashMapToFile();
}
#endif /* ENDGAME_LEARNING */