jordanbray / chess

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

Bug in MoveGen #15

Closed s-arash closed 5 years ago

s-arash commented 5 years ago

There appears to be a bug in move generation. This piece of code panics:

let board = Board::from_fen("rnbqkbnr/ppp2pp1/4p3/3N4/3PpPp1/8/PPP3PP/R1B1KBNR b KQkq f3 0 1".to_string()).unwrap();

let move_gen = MoveGen::new_legal(&board);
jordanbray commented 5 years ago

I probably deserve a bug with how much stuff I changed. I'll look at this in more detail in a few hours when I get home from work.

Thanks

jordanbray commented 5 years ago

Fixed in 3.0.1.