mikolaj-skrzypczak / chess-engine

Implementation of chess in python created while following a step-by-step YouTube tutorial by Eddie Sharick.
https://www.youtube.com/channel/UCaEohRz5bPHywGBwmR18Qww
39 stars 26 forks source link

A quick note to say thanks #1

Open SebasQuirogaUCP opened 1 year ago

SebasQuirogaUCP commented 1 year ago

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.

DanTheComputerMan commented 6 months ago

python_EPAIaAh4KK

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:

python_q5vQRr5ks7

Rupsero commented 5 months ago

python_EPAIaAh4KK

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:

python_q5vQRr5ks7

Yep, I had the same problem. Did you tried to fix that by any chance?

Bazzz-1 commented 1 week ago

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