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

Adding Variants #73

Open
SudokuMonster opened this issue Dec 1, 2019 · 2 comments
Open

Adding Variants #73

SudokuMonster opened this issue Dec 1, 2019 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@SudokuMonster
Copy link
Owner

Added several variants
visibleCellIndex and visibleCellSets are updated by calling changeVisibleCells. isVanilla() will be used throughout the code to minimizes un-necessary check for different variants when in vanilla sudoku mode.
Disjoint groups is currently has each block position in a different colour. I'm hoping that I can use a B&W texturedPaint instead in the future.

Decided not to allow simultaneous "Extra groups" as I'm out of colours! All can be used from command line though

@SudokuMonster SudokuMonster added the enhancement New feature or request label Dec 1, 2019
@SudokuMonster SudokuMonster self-assigned this Dec 1, 2019
@SudokuMonster
Copy link
Owner Author

SudokuMonster commented Dec 13, 2019

Region extended for each variant constraint
Changes to techniques to accommodate variants
isVanilla and isVLatin are used to minimize checks for each individual variant
Several new options to control variants from command line

-D --isDG
-E --isCD
-K --isAsterisk
-R --isGirandola
-W --isWindows
-X --isX

@SudokuMonster
Copy link
Owner Author

SudokuMonster commented Dec 30, 2019

-n --isAntiKnight
-k --isAntiKing
-O --isToroidal
-c --isNC

c1 for NC and c2 for NC+
All default to 0 (disabled)

New techniques (and therefore 2 more characters in --techs)

forcingCellNC
lockedNC

These are enabled by default in all settings but will only be used if whichNC() > 0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant