Open
Conversation
… or not they're a basic/case/contradiction/ rule
Clarifying documentation.
Clarifying documentation.
I noticed that the hover messages for three of the sudoku case rules were all the same and also didn't accurately describe what was going on. So I made them clearer and more accurate.
Some of the rule descriptions were not consistent looking. Some had () and some had - so I made them all have -, for the sudoku rules. Also I wanted to get rid of some things that I put earlier that weren't doing anything.
the Not Shared Empty rule for minesweeper was not working for cells between two numbers (horizontally/vertically or diagonally) it was only working for a cell next to two adjacent numbers. That was fixed and a test was written for it.
This is meant to resolve issue Bram-Hub#933. It no longer breaks when the NonTouching Shared Direct Rule is used.
jadeandtea
requested changes
Mar 27, 2026
Collaborator
jadeandtea
left a comment
There was a problem hiding this comment.
Can you add a small comment to the test that explains what the test puzzle is checking for? Like have a diagram for which situations are checked and why the rule should/shouldn't check out.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Updates rule descriptions for Sudoku
Fixes Minesweeper's NonTouchingSharedEmpty rule.
Closes issue #349
Type of change
How Has This Been Tested?
I wrote a test that verifies the minesweeper fix @
src/test/java/puzzles/minesweeper/NonTouchingSharedEmptyDirectRuleTest. The Sudoku rule descriptions can be checked directly. As for the thing with issue 349, somebody with a mac should try closing the application and verifying that it behaves the same as it does on windows.Checklist: