Open SebasQuirogaUCP opened 1 year ago
My lack of chess skill aside, this project (and perhaps the original as well) has a bug in that the queen can save itself from a pin ... by allowing their king to be captured.
This is how the game ended:
My lack of chess skill aside, this project (and perhaps the original as well) has a bug in that the queen can save itself from a pin ... by allowing their king to be captured.
This is how the game ended:
Yep, I had the same problem. Did you tried to fix that by any chance?
Not sure if this would solve your problem but I found you need to call self.getRookMoves before self.getBishopMoves under the getQueenMoves function otherwise the queen doesn't pin correctly.
But yeah otherwise this code has saved me a boatload of coding time haha, big thank you to Mikolaj! <3 Very well put together. The separation between UI and chess engine was a great idea
Thank you for all your efford doing this and making it available to the public. I git cloned it and it works perfectly. I started watching the videos for a better understanding.