forked from Bram-Hub/LEGUP
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
74 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
sudoku: case rules | ||
|
||
kchiu1 edited this page on Feb 6 · 5 revisions | ||
case rules: | ||
number for cell | ||
you can only fill in a cell with certain numbers. | ||
|
||
cell for number | ||
a number can only fit in certain cells in a group. | ||
|
||
contradiction rules | ||
repeated number (row/column) | ||
a number is repeated in a row or column (cannot place number) | ||
|
||
repeated number (cells) | ||
a number is repeated in a cell (cannot place number) | ||
|
||
no number for cell | ||
number cannot be placed because it would be a duplicate if placed | ||
|
||
no cell for number | ||
no numbers can be placed because of numbers outside the cell blocking it | ||
|
||
basic rules | ||
last number for cell | ||
the last number that can possibly be placed in a cell | ||
|
||
last cell for number | ||
the last number that can possibly be placed in a row or column | ||
|
||
|
||
TODO | ||
keep | ||
-controller | ||
-cell factory | ||
|
||
fix | ||
-rules (uncertain how well implemented they are) | ||
-elements (probably not number tiles) | ||
|
||
case rule | ||
number for cell | ||
cell for number change name (Originally "Possible cells for number") | ||
|
||
contradiction | ||
Repeated number Split into *repeated column, repeated row*, and repeated cell | ||
no number for cell | ||
+no cell for number cannot place number because being squeezed by numbers outside the cell | ||
|
||
basic | ||
Last number for cell | ||
Last cell for number | ||
|
||
2/6 Update: | ||
Test Board: Basic Rules.14538464 | ||
|
||
EXAMPLE BOARD | ||
image | ||
SOLUTION | ||
image | ||
Issues with existing code: | ||
|
||
possible numbers for cell/cell for number swapped (both wrong anyway) | ||
|
||
advanced deduction is a dev tool | ||
|
||
new contradiction, fix case rules, fix other rules | ||
|
||
fix names | ||
|
||
2/23 Update: | ||
NEW: add possible number for row, column, cell | ||
|
||
continue testing |