20%概率下次优棋
This commit is contained in:
parent
1795357070
commit
0e82b83941
|
@ -702,7 +702,10 @@ const char* NineChessAi_ab::bestMove()
|
|||
|
||||
#ifdef RANDOM_BEST_MOVE
|
||||
time_t time0 = time(0);
|
||||
retIndex = bestMovesSize > 1 ? time0 % 2 : 0;
|
||||
|
||||
if (time0 % 5 == 0) {
|
||||
retIndex = bestMovesSize > 1 ? 1 : 0;
|
||||
}
|
||||
#else
|
||||
retIndex = 0;
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue