We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7cfe344 commit 61e3d6dCopy full SHA for 61e3d6d
engine/src/search.rs
@@ -479,7 +479,7 @@ impl<'a> Search<'a> {
479
// update history table for quiets
480
if mv.is_quiet() {
481
// calculate history bonus
482
- let bonus = 300 * depth - 250;
+ let bonus = depth.wrapping_mul(300) - 250;
483
self.history_table.update(
484
board.side_to_move(),
485
mv.piece(),
0 commit comments