nozaq / shogi-rs

A Bitboard-based shogi library in Rust. Board representation, move generation/validation and time control utilities.
https://docs.rs/shogi/latest/shogi/
MIT License
46 stars 3 forks source link

fix: check pinning status in Uchifuzume detection #8

Closed nozaq closed 7 years ago

nozaq commented 7 years ago

Previously, Uchifuzume was not detected when there is any piece attacking the dropped pawn even if it was pinned.

This commit checks if pieces attacking the dropped pawn are pinned or not so that Uchifuzume should be detected if all of them are pinned.

coveralls commented 7 years ago

Coverage Status

Coverage decreased (-0.1%) to 95.916% when pulling b004f1f496b78b0863efccfe4a3ba96cf9214a5f on uchifuzume-fix into 605cbe03ab551625b82a4be548950126d2a1d20f on master.

coveralls commented 7 years ago

Coverage Status

Coverage decreased (-0.1%) to 95.916% when pulling b004f1f496b78b0863efccfe4a3ba96cf9214a5f on uchifuzume-fix into 605cbe03ab551625b82a4be548950126d2a1d20f on master.

coveralls commented 7 years ago

Coverage Status

Coverage decreased (-0.05%) to 95.975% when pulling 4d33c2008d85ff55e2b4f9c0152e04c01f6708b3 on uchifuzume-fix into 605cbe03ab551625b82a4be548950126d2a1d20f on master.