Reduce bitboards from 12 to 8, add color info in mailbox representation
This commit is contained in:
@@ -17,7 +17,7 @@ pub fn sort_moves(mut moves: Vec<Move>, mailbox: &Mailbox, tt_move: Option<Move>
|
||||
|
||||
const fn mvv_lva(mailbox: &Mailbox, mv: Move) -> i32 {
|
||||
match (mailbox.piece_at(mv.src), mailbox.piece_at(mv.dst)) {
|
||||
(Some(aggressor), Some(victim)) => material_score(victim) - material_score(aggressor),
|
||||
(Some(aggressor), Some(victim)) => material_score(victim.0) - material_score(aggressor.0),
|
||||
_ => -1000,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user