aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/board/engine.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/board/engine.rs b/src/board/engine.rs
index e27b004..8521082 100644
--- a/src/board/engine.rs
+++ b/src/board/engine.rs
@@ -168,8 +168,8 @@ impl Board {
material += serialize_bitboard(*bitboard).iter().fold(0., |acc, square| {
acc + piece_type.static_eval() + bonus_table[
match color {
- Color::White => *square as usize,
- Color::Black => square.mirror() as usize,
+ Color::White => square.mirror() as usize,
+ Color::Black => *square as usize,
}
]
});