- // Prevent history overflow:
- if(history[p][move_to(m)] >= HistoryMax)
- for(int i = 0; i < 16; i++)
- for(int j = 0; j < 64; j++)
- history[i][j] /= 2;
+ // Prevent history overflow
+ if (history[p][to] >= HistoryMax)
+ for (int i = 0; i < 16; i++)
+ for (int j = 0; j < 64; j++)
+ history[i][j] /= 4;