Got a message while I shouldn't (?)

Hi all,

I wrote a simple puzzle game which has a bug I am not able to fix.

To reproduce:

  • Play the game normally
  • At some point, click new (the state reset correctly)
  • Activate any cell → You will get the message NewBoard again for some reason

The source code is here:

It’s deployed with --debug here: Compiling - a silly solo game you can play while compiling

Cheers!

The “New” button still has focus. Pressing Space on a focused button activates it. At the same time, you listen for Space keypresses. Try clicking the New button and then outside it (which removes focus from it). Then the game works normally again.

2 Likes

Brillant! Thank you

I owe you a couple of your favorite beverages.

Cheers!

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.