You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ok, after a multitude of testing this week, I have come to the conclusion that this is a general bug with case rules. I believe once a transition is present like this:
even if there are no actual changes present on the board, the case rule checker starts to act strangely. This is because many of the case rules rely on parent.getChildren() for error checking. By making a modification to the board, we set the number of children to 1. However, in the case of Satisfy Number, you are allowed to have 1 child, and so this results in the rule missing the error check.
I have also verified this is an engine-wide bug with testing on Nurikabe:
Open any LEGUP Nurikabe puzzle
Make any modification to the board
Click on the cells you modified and change them back to unknown. At this point, there should be no difference between the starting board and the board currently on your screen, but there should exist a transition on the tree in the TreeView.
Attempt to use the Black or White case rule, which should be allowed to be used at this point.
Note that LEGUP creates a new node with a red transition.
A possible solution I will explore is deleting this arrow on any call of a case rule. I'm not sure how this is possible right now and will need to do more testing to figure out how to implement this.
Description
OK, really bizarre one ... I have a case rule that checks out when it should clearly not
Steps to Reproduce
First I do some initial moves. So far so good:
Now I put a lightbulb to the right of the 2 ... and select the Case Rule 'Satify Number':
Oops! This should not check out. And strangely, it does not check out when the very top right square is not lit up. For example:
I really have no idea what could lead to this behavior ... someone will have to trace this
Expected Behavior
As explained above, the rule should not check out
Screenshots
No response
Puzzle Files
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: