[BUG] Skycrapers Cell For Number Case Rule
Description
In Skyscrapers, if you select Cell for Number case rule, a popup tells you to select the number to be added. This popup has a cancel button, but it does not work. When you press cancel, the popup does not go away.
Steps to Reproduce
- Open 4x4 skyscrapers easy1 (I think this bug exists on all boards though)
- Select case rules
- Select cell for number
- Select cancel (the popup won't go away)
Expected Behavior
I expected the popup to go away when you press cancel
Screenshots
Puzzle Files
No response
Additional Context
No response
I looked into it a little bit; The case rule requires a number to fill in the row or column with, so there is a popup for the number to add. The popup window is in a do-while loop and waits until the number is set to something before moving on, which explains why the window doesn't close. It's in the getCaseBoard function within /skyscrapers/rules/CellForNumberCaseRule. However, if you cancel without selecting a number, the engine throws an error because there is no way to cancel a case rule after selecting it. Theoretically, if there is a way to tell the program to exit case rule mode, it would resolve the issue.