Skip to content

Commit

Permalink
- 不要なand演算をコメントアウト
Browse files Browse the repository at this point in the history
  • Loading branch information
Lefu777 committed Apr 14, 2024
1 parent 93edf88 commit 09b01e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/position.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -740,7 +740,7 @@ inline Bitboard Position::attackers_to_pawn(Color c, Square pawn_sq) const
const Bitboard& occ = pieces();

// 馬と龍
const Bitboard bb_hd = kingEffect(pawn_sq) & pieces(HORSE,DRAGON);
const Bitboard bb_hd = /* kingEffect(pawn_sq) & */ pieces(HORSE,DRAGON);
// 馬、龍の利きは考慮しないといけない。しかしここに玉が含まれるので玉は取り除く必要がある。
// bb_hdは銀と金のところに加えてしまうことでテーブル参照を一回減らす。

Expand Down

0 comments on commit 09b01e3

Please sign in to comment.