lukasmonk / lucaschessR2

Lucas Chess R Version 2
GNU General Public License v3.0
255 stars 36 forks source link

Bug when Long castling on a tactic of the transsiberian railway #146

Open gabrieldvenancio opened 1 month ago

gabrieldvenancio commented 1 month ago

I've stumbled upon this puzzle, that i believe the solution is 1. O-O-O+, but after long castling, the game just freezes, and the CPU won't play a move or neither show the message after completing it.

The puzzle: Captura de Tela (19)

After 1.O-O-O+ it just stays like this and won't advance: image

But if I make the wrong move, it shows the "wrong move" on the corner, so that's working. image

lukasmonk commented 1 month ago

That solution is the solution. Using a test file with only this position, it worked correctly. Maybe if you send me the Variables.pk file in the UserData/Config folder I can replicate the problem. Also the bin/bug.log file. If you prefer you can send them to me at lukasmonk at gmail.

gabrieldvenancio commented 1 month ago

I've just sent it to your email! thanks for the reply

lukasmonk commented 1 month ago

It is a problem with the sound and O-O-O. Disable sound until past this position. Fixed, I´ll try to publish today.

gabrieldvenancio commented 1 month ago

Disabling the sound indeed solved the issue. Thanks!

edit: I might have messed something up, but i believe there's no sound at all now (not that's a huge problem), but I would need to investigate it later as well if it's not a bug