jordanbray / chess

A rust library to manage chess move generation
https://jordanbray.github.io/chess/
MIT License
234 stars 54 forks source link

fixed board state bug after null-move #12

Closed mattbruv closed 6 years ago

mattbruv commented 6 years ago

In response to my issue here. After spending time poking around the board.legal() function, the solution is actually a very simple addition of one line to the null_move() function:

result.update_pin_info();

There may be more nuance to it than this, but it passes my previous issue and all previous tests still pass.

jordanbray commented 6 years ago

Looks good. I'll publish the new version tonight.