B:BD[
2.3941] → [
2.3941:4692]
score += switch (@intToEnum(Chess.PE, idx)) {
.P => PAWN_SCORE[bit],
.N => KNIGHT_SCORE[bit],
.B => BISHOP_SCORE[bit],
.R => ROOK_SCORE[bit],
.K => KING_SCORE[bit],
.Q => break,
.p => -PAWN_SCORE[@enumToInt(MIRROR_SCORE[bit])],
.n => -KNIGHT_SCORE[@enumToInt(MIRROR_SCORE[bit])],
.b => -BISHOP_SCORE[@enumToInt(MIRROR_SCORE[bit])],
.r => -ROOK_SCORE[@enumToInt(MIRROR_SCORE[bit])],
.k => -KING_SCORE[@enumToInt(MIRROR_SCORE[bit])],
.q => break,
else => 0,
};
score += switch (@intToEnum(Chess.PE, idx)) {
.P => PAWN_SCORE[bit],
.N => KNIGHT_SCORE[bit],
.B => BISHOP_SCORE[bit],
.R => ROOK_SCORE[bit],
.K => KING_SCORE[bit],
.Q => break,
.p => -PAWN_SCORE[@enumToInt(MIRROR_SCORE[bit])],
.n => -KNIGHT_SCORE[@enumToInt(MIRROR_SCORE[bit])],
.b => -BISHOP_SCORE[@enumToInt(MIRROR_SCORE[bit])],
.r => -ROOK_SCORE[@enumToInt(MIRROR_SCORE[bit])],
.k => -KING_SCORE[@enumToInt(MIRROR_SCORE[bit])],
.q => break,
else => 0,
};