Skip to content

Commit

Permalink
chore: auto-format
Browse files Browse the repository at this point in the history
bench: 1583604
  • Loading branch information
DeveloperPaul123 committed Dec 19, 2024
1 parent e772b52 commit 10a4d0c
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions engine/src/history_table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,7 @@ impl HistoryTable {
self.table[side as usize][piece as usize][square as usize]
}

pub(crate) fn update(
&mut self,
side: Side,
piece: Piece,
square: u8,
bonus: LargeScoreType,
) {
pub(crate) fn update(&mut self, side: Side, piece: Piece, square: u8, bonus: LargeScoreType) {
assert!(side != Side::Both, "Side cannot be Both");
let current_value = self.table[side as usize][piece as usize][square as usize];
let clamped_bonus = bonus.clamp(-Score::MAX_HISTORY, Score::MAX_HISTORY);
Expand Down

0 comments on commit 10a4d0c

Please sign in to comment.