Sudoku Studio1
A sudoku handling SDK using brute forces and logical techniques. Now this solution supports generating puzzles, solving puzzles (with logical & illogical techniques) and some attribute checking (for example, to determine whether the specified grid is a minimal puzzle, which will become multiple solutions when any a digit is missing).
Here I give you a sample to demonstrate how to solve a puzzle using manual sudoku techniques.
In the future, I'd like to apply this solution to almost every platform. I may finish the Win10 app project, android app project, bot on common on-line platforms (QQ, Bilibili and so on).
Please note that the programming language version is always used as 'preview', which means some preview features are still used in this solution.
You can also use JetBrains Rider as your IDE. Use whatever you want to use, even Notepad :D Although C# contains some syntaxes that are only allowed in Visual Studio (e.g. keyword __makeref
), this repo doesn't use them. Therefore, you can use other IDEs to develop the code in this repo liberally.
In addition, the framework and IDE version may update in the future; in other words, they aren't changeless. The information is for reference only.
I don't use MVVM to design my UI project because I'm not familiar with it. If using as learning it, the development speed will be extremely slow.
Command line:
UI:
The program is being under construction now!
This solution supports many kinds of human-friendly techniques. Here I will list them.
- Singles
- Naked Single, Full House
- Hidden Single, Last Digit
- Candidate-Related Techniques
- Locked Candidates Family
- Locked Candidates
- Almost Locked Candidates
- Firework Subsets (Hanabi)
- Subsets
- Naked Subsets
- Hidden Subsets
- Fishes (including finned types)
- Normal Fishes
- Complex Fishes (Franken Fishes, Mutant Fishes)
- Single-Digit Structures
- Two-Strong-Links
- Empty Rectangle
- Guardian (Waiting for bugs fixed)
- Wings
- Regular Wing (XY-Wing, XYZ-Wing, etc.)
- Irregular Wing (W-Wing, M-Wing2, etc.)
- Uniqueness
- Unique Rectangle
- Unique Loop (Waiting for bugs fixed)
- Extended Rectangle (Including fit types and fat types)
- Unique Polygon (i.e. Borescoper's Deadly Pattern)
- Qiu's Deadly Pattern
- Unique Square
- Bi-value Universal Grave
- Alternating Inference Chains
- Single-Digit AICs
- Multi-Digit AICs
- Grouped AICs (Waiting for bugs fixed)
- Almost Locked Sets
- Chaining ALSes (Including ALS-XZ, ALS-XY-Wing, ALS-W-Wing)
- Empty Rectangle Intersection Pair
- Rank Logics
- Positive or 0 -Rank Logics
- Sue de Coq (Including basic type, isolated digit type and cannibalistic type)
- 3-Dimensional Sue de Coq
- Domino Loop
- Exocets
- Junior Exocet
- Multi-Sector Locked Sets
- Negative Rank Logics
- Bi-value Oddagon (Waiting for bugs fixed)
- Tri-value Oddagon
- Positive or 0 -Rank Logics
- Symmetrical Placements
- Gurth's Symmetrical Placements
- Last Resorts
- Bowman's Bingo
- Computer Algorithms
- Pattern Overlay
- Templating
- Brute Force
- Locked Candidates Family
Some other techniques will be implemented later, such as senior exocets, unknown covering, death blossom, forcing chains and dynamic chains.
Of course you can fork my repo and do whatever you want. You can do whatever you want to do under the MIT license. However, due to the copy of the GitHub repo, Gitee repo doesn't support any PRs. I'm sorry. But you can create the issue on both two platforms. Please visit the following part "Basic Information" for learning about more details.
In addition, this repo may update frequently (At least 1 commit in a day).
Please visit this link for more information.
The codes in this repository uses MIT license, which means you should mention the copyright of the author of the repository if you want to use code snippet in this repository.
The repository also lists many wiki pages, being stored in the folder docs
. In addition, files README.md
and README-zh-cn.md
(as Chinese translation version) are also included as wiki pages. Those pages uses CC-BY-4.0 license to constraint your usage and copyright statements on this repository. You should mention the copyright of the author in this repository and give the state changes after modified the content in the copied one if you want to use the Wiki pages.
Please see the file CODE_OF_CONDUCT.
Here we list some websites about sudoku techniques that I used and referenced. The contents are constructed by myself, so if you want to learn more about sudoku techniques that this solution used and implemented, you can visit the following links3 to learn about more information.
Sunnie, from Chengdu, is a normal undergraduate from Sichuan Normal University. I mean, a normal university (Pun)
Footnotes
-
The old name of the repository is "Sunnie's Sudoku Solution". ↩
-
W-Wing is implemented by a single technique searcher type, while other irregular wing types are implemented by AIC searchers. ↩
-
I'm sorry that those pages are written in Chinese. However, I may create pages written in other languages in the future. ↩