Skip to content

Commit

Permalink
Create Wiki Edits
Browse files Browse the repository at this point in the history
  • Loading branch information
kchiu1 authored Apr 12, 2024
1 parent 653c816 commit 96912a9
Showing 1 changed file with 74 additions and 0 deletions.
74 changes: 74 additions & 0 deletions Wiki Edits
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

0 comments on commit 96912a9

Please sign in to comment.