Closed Bram28 closed 4 months ago
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:
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.
Fixed by #755
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