issues
search
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 unmaking of capturing move #25
#27
Closed
na2hiro
closed
3 years ago
na2hiro
commented
3 years ago
Fixes two issues including #25
When undoing capturing of a promoted piece, the piece should be decremented in hands, but it didn't.
When undoing promoting of a piece,
It always threw Inconsistent ("Cannot unpromote" case).
Not covered by unit test, but I believe that bitboard updates were incorrect
Fixes two issues including #25