chrisboyle / sgtpuzzles

Android port of Simon Tatham's Puzzles
https://chris.boyle.name/puzzles
Other
584 stars 166 forks source link

Palisade: constraint number not rendered in red #606

Closed Lucas-C closed 1 year ago

Lucas-C commented 1 year ago

Describe the bug In a specifc case, a cell number that should be rendered red because the constraint is NOT satisfied stays black.

As the screenshots below demonstrate, this only happens for some specific state, when at least one adjacent edge is yellow

To Reproduce Steps to reproduce the behavior: I don't really know

Expected behavior I expected the number 3 to be colored in red in all 4 configurations above.

Screenshots

Screenshot_20230524-183048_Puzzles Screenshot_20230524-183253_Puzzles Screenshot_20230524-183259_Puzzles Screenshot_20230524-183306_Puzzles

Version info (optional, but sometimes helpful)

chrisboyle commented 1 year ago

Yellow is the "maybe" state, meaning you might still put an edge there. The game doesn't consider it an error until you make enough edges grey (definite non-edges) that you definitely can't satisfy the constraint. Otherwise most of the numbered squares would be red from the start which would be very distracting. This isn't just Palisade; it's consistent across all similar games.

Lucas-C commented 1 year ago

OK, thank you for the explanation