Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Interplay contradiction rule and modifying board #551

Closed
Bram28 opened this issue Jun 7, 2023 · 2 comments
Closed

[BUG] Interplay contradiction rule and modifying board #551

Bram28 opened this issue Jun 7, 2023 · 2 comments
Assignees
Labels
bug Something isn't working good first issue Good for newcomers priority This issue should be focused on first ui

Comments

@Bram28
Copy link
Member

Bram28 commented Jun 7, 2023

Description

If you use a contradiction rule, you should of course not be able to modify the board at thew same time. But currently LEGUP allows this ... leading to mistakes.

Steps to Reproduce

OK, let's start with a blank board, and immediately try a contradiction rule:

image

LEGUP correctly indicates that my use of the contradiction rule is incorrect. So far so good.

Now let's go back to the transition, and add two lightbulbs to the board:

image

Oops! This should of course not happen. The fundamental mistake is of course that I was able to make changes to the board in the first place during the transition that points to a contradiction rule. If a contradiction rule is used, I should not also be able to make a change to the board.

By the way, what if we first make changes to the board (which of course I should be able to do, and then select a contradiction rule? Then it looks like this:

image

Well, at least the rule does not check out ... but I still have two lightbulbs being placed on the board as part of a transition that points to a contradiction rule. Note that when I go back to the starting board state, and then go back to the transition, it looks like this:

image

OK, so the lightbulbs are no longer considered part of the transition ... but it's too late: we should never have allowed to have changes to the board and a contradiction rule as part of the same transition!

Expected Behavior

Here is what I propose: when the user makes a change to the board, then the user will simply not be able to select a contradiction rule ... a warning should appear to that effect. And when a transition already points to a contradiction rule, the user should not be able to make any changes to the board as part of that transition (again, maybe a warning will appear as soon as the user tries to make a change to the board as part of a contradiction rule transition)

Screenshots

No response

Puzzle Files

No response

Additional Context

No response

@Bram28 Bram28 added bug Something isn't working good first issue Good for newcomers priority This issue should be focused on first ui labels Jun 7, 2023
@charlestian23
Copy link
Collaborator

@Chase-Grajeda This issue gets closed with #649, right?

@Chase-Grajeda
Copy link
Collaborator

Chase-Grajeda commented Nov 10, 2023

Yup, #649 's changes also fixed this bug. Closing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers priority This issue should be focused on first ui
Projects
None yet
Development

No branches or pull requests

4 participants