thomasahle / sunfish

Sunfish: a Python Chess Engine in 111 lines of code
https://www.chessprogramming.org/Sunfish
Other
2.95k stars 543 forks source link

Sunfish freezes after a while. #117

Open acteam-ux opened 7 months ago

acteam-ux commented 7 months ago

hi. so, I'm running sunfish on Windows, with Python 3.11. to run it, I've created a .bat file, with the following contents: python ./sunfish.py and then I hook it up to Pychess. so, there are a lot of positions where it just freezes, and when I use the ask to move feature it dies. the engine generally prefers the Sicilian defense as black, and I generally play the smith-morra gambit against it. after e4, c5, d4, xd4, Qxd4, Nc6, Qd1, it just freezes, and dies. there are many other positions like this, and I don't think I have managed to complete a single game with it. I don't know if it's trying to make an illegal move or anything. also, the NNUE version doesn't freeze it straight up dies.

thomasahle commented 1 month ago

That's not good. Can you give an example, without using UI, where it crashes?