mcostalba/Stockfish — pull request #126 by Matt14916 (2013-10-26 20:46:46+00:00)
Title: Fix divide by zero bug in very long games

If the game got late enough that move_importance(currentPly) * slowMover / 100 rounds to 0 (around move 253 with the default slow mover value), then we ended up dividing 0 by 0 when only looking 1 move ahead. This apparently caused the search to almost immediately abort and Stockfish would blunder in those long games. So instead of dividing thisMoveImportance by 100 we multiply otherMoveImportance by 100.

Outside of the bug fix, this should only result in extremely tiny time allocation changes.