/<absolute path to your tools directory>/CSP-Rules/CSP-Rules-V2.1/
(defglobal ?*CSP-Rules* = "/<absolute path to your tools directory>/CSP-Rules/"
SpAce wrote:One more thing. The manual instructs to rename the unzipped directory to "CSP-Rules-V2.1", which is correct, but the following '(i.e. delete the final "master" part, if any)' is not enough for the new version because it unzips to "CSP-Rules-V2-2.1-master". The config files seem to depend on "CSP-Rules-V2.1", so they will not work (out of the box) if the directory is "CSP-Rules-V2-2.1".
(Denis, I would suggest some kind of simplification to avoid confusion. Either change the zip name back to '*-V2.1' or update the files (and the BUM) to reflect the new version.)
denis_berthier wrote:Subsets are not quite enough, but add short bivalue-chains and it's ok
(bind ?*Subsets* TRUE)
(bind ?*FinnedFish* TRUE)
(bind ?*Bivalue-Chains* TRUE)
(bind ?*Subsets* TRUE)
(bind ?*FinnedFish* TRUE)
;;; Don't put the finned-fish if you don't like to eat fins.
FINAL RESOLUTION STATE:
689 23789 256 46 378 69 1 6789 45
5689 789 1 2 78 469 45 6789 3
37 4 369 18 5 138 6789 2 789
13 5 239 189 6 128 789 4 789
489 1289 7 3 1289 45 25 189 6
689 1289 246 45 1289 7 3 189 25
2 17 45 56 13 68 689 37 489
45 39 8 7 239 256 246 36 1
17 6 39 189 4 1238 278 5 278
(bind ?*Subsets* TRUE)
(bind ?*FinnedFish* TRUE)
(bind ?*Bivalue-Chains* TRUE)
;;; Don't put the finned-fish if you don't like to eat fins.
(solve-sukaku-as-list
689 23789 256 46 378 69 1 6789 45
5689 789 1 2 78 469 45 6789 3
37 4 369 18 5 138 6789 2 789
13 5 239 189 6 128 789 4 789
489 1289 7 3 1289 45 25 189 6
689 1289 246 45 1289 7 3 189 25
2 17 45 56 13 68 689 37 489
45 39 8 7 239 256 246 36 1
17 6 39 189 4 1238 278 5 278
)
***********************************************************************************************
*** SudoRules 20.1.s based on CSP-Rules 2.1.s, config = BC+SFin
*** Using CLIPS 6.32-r773
***********************************************************************************************
165 candidates, 672 csp-links and 672 links. Density = 4.97%
biv-chain[3]: r1c4{n6 n4} - r6n4{c4 c3} - b4n6{r6c3 r6c1} ==> r1c1 ≠ 6
biv-chain[3]: r3c1{n7 n3} - b2n3{r3c6 r1c5} - b2n7{r1c5 r2c5} ==> r2c2 ≠ 7
naked-pairs-in-a-block: b1{r1c1 r2c2}{n8 n9} ==> r3c3 ≠ 9, r2c1 ≠ 9, r2c1 ≠ 8, r1c2 ≠ 9, r1c2 ≠ 8
whip[1]: r3n9{c9 .} ==> r1c8 ≠ 9, r2c8 ≠ 9
whip[1]: c8n9{r6 .} ==> r4c7 ≠ 9, r4c9 ≠ 9
naked-pairs-in-a-block: b6{r4c7 r4c9}{n7 n8} ==> r6c8 ≠ 8, r5c8 ≠ 8
stte
bivalue-chains (typed or not, blocked or not)
z-chains (typed or not)
oddagons
whips (untyped)
braids (untyped)
g-whips (untyped)
g-braids (untyped)
forcing-whips, forcing-braids, forcing-g-whips, forcing-g-braids (where the focus is not applied to eliminated or asserted candidates but to the bivalue starting points).
..9......8....97...7..6..5..5..4..6.9....38....2.......6..5.17.2....84......1....
(bind ?*Whips[1]* TRUE)
(bind ?*Anti-Backdoors* TRUE)
(find-sudoku-anti-backdoors "..9......8....97...7..6..5..5..4..6.9....38....2.......6..5.17.2....84......1....")
13 W1-ANTI-BACKDOORS FOUND: (892 388 985 982 182 979 879 968 865 944 843 834 818)
(init-sudoku-string "..9......8....97...7..6..5..5..4..6.9....38....2.......6..5.17.2....84......1....")
(try-to-eliminate-candidates xxx)
892: biv-chain[4]: c8n8{r9 r1} - c5n8{r1 r6} - c5n9{r6 r8} - b7n9{r8c2 r9c2} ==> r9c2 ≠ 8, r9c8 ≠ 9
879: biv-chain[4]: r3n8{c9 c4} - c5n8{r1 r6} - c5n9{r6 r8} - r7n9{c4 c9} ==> r7c9 ≠ 8, r3c9 ≠ 9
865: biv-chain[3]: c2n8{r6 r9} - b7n9{r9c2 r8c2} - c5n9{r8 r6} ==> r6c5 ≠ 8
944: biv-chain[3]: r4n8{c4 c3} - r7n8{c3 c9} - r7n9{c9 c4} ==> r4c4 ≠ 9
843: biv-chain[6]: r7n8{c3 c9} - r7n9{c9 c4} - c5n9{r8 r6} - c5n8{r6 r1} - c8n8{r1 r9} - c2n8{r9 r6} ==> r4c3 ≠ 8, r9c2 ≠ 8
834: biv-chain[5]: r4n8{c4 c3} - r7n8{c3 c9} - r7n9{c9 c4} - c5n9{r8 r6} - c5n8{r6 r1} ==> r3c4 ≠ 8, r6c5 ≠ 8
818: biv-chain[6]: r3n8{c9 c4} - r4n8{c4 c3} - r7n8{c3 c9} - r7n9{c9 c4} - c5n9{r8 r6} - c5n8{r6 r1} ==> r1c8 ≠ 8, r1c9 ≠ 8, r3c4 ≠ 8
892: biv-chain[4]: c8n8{r9 r1} - c5n8{r1 r6} - c5n9{r6 r8} - b7n9{r8c2 r9c2} ==> r9c2 ≠ 8
985: z-chain[6]: c2n9{r8 r9} - c2n8{r9 r6} - r4n8{c3 c4} - c4n9{r4 r6} - c8n9{r6 r9} - r7n9{c9 .} ==> r8c5 ≠ 9
979: z-chain[4]: r7n8{c9 c3} - r4n8{c3 c4} - r4n9{c4 c7} - r3n9{c7 .} ==> r7c9 ≠ 9
879: biv-chain[4]: r3n8{c9 c4} - c5n8{r1 r6} - c5n9{r6 r8} - r7n9{c4 c9} ==> r7c9 ≠ 8
968: z-chain[5]: c5n9{r6 r8} - c2n9{r8 r9} - c2n8{r9 r6} - r4n8{c3 c4} - r4n9{c4 .} ==> r6c8 ≠ 9
865: biv-chain[3]: c2n8{r6 r9} - b7n9{r9c2 r8c2} - c5n9{r8 r6} ==> r6c5 ≠ 8
944: biv-chain[3]: r4n8{c4 c3} - r7n8{c3 c9} - r7n9{c9 c4} ==> r4c4 ≠ 9
843: biv-chain[6]: r7n8{c3 c9} - r7n9{c9 c4} - c5n9{r8 r6} - c5n8{r6 r1} - c8n8{r1 r9} - c2n8{r9 r6} ==> r4c3 ≠ 8
834: biv-chain[5]: r4n8{c4 c3} - r7n8{c3 c9} - r7n9{c9 c4} - c5n9{r8 r6} - c5n8{r6 r1} ==> r3c4 ≠ 8
818: biv-chain[6]: r3n8{c9 c4} - r4n8{c4 c3} - r7n8{c3 c9} - r7n9{c9 c4} - c5n9{r8 r6} - c5n8{r6 r1} ==> r1c8 ≠ 8
892: biv-chain[4]: c8n8{r9 r1} - c5n8{r1 r6} - c5n9{r6 r8} - b7n9{r8c2 r9c2} ==> r9c2 ≠ 8, r9c8 ≠ 9
985: whip[5]: r7n9{c4 c9} - c8n9{r9 r6} - r4n9{c9 c4} - r4n8{c4 c3} - r7n8{c3 .} ==> r8c5 ≠ 9
982: whip[4]: c5n9{r8 r6} - c8n9{r6 r9} - c8n8{r9 r1} - c5n8{r1 .} ==> r8c2 ≠ 9
979: z-chain[4]: r7n8{c9 c3} - r4n8{c3 c4} - r4n9{c4 c7} - r3n9{c7 .} ==> r7c9 ≠ 9
879: biv-chain[4]: r3n8{c9 c4} - c5n8{r1 r6} - c5n9{r6 r8} - r7n9{c4 c9} ==> r7c9 ≠ 8, r3c9 ≠ 9
968: whip[4]: r4n9{c9 c4} - r7n9{c4 c9} - r7n8{c9 c3} - r4n8{c3 .} ==> r6c8 ≠ 9
865: biv-chain[3]: c2n8{r6 r9} - b7n9{r9c2 r8c2} - c5n9{r8 r6} ==> r6c5 ≠ 8
944: biv-chain[3]: r4n8{c4 c3} - r7n8{c3 c9} - r7n9{c9 c4} ==> r4c4 ≠ 9
843: whip[5]: c2n8{r6 r9} - c8n8{r9 r1} - c5n8{r1 r6} - c5n9{r6 r8} - c2n9{r8 .} ==> r4c3 ≠ 8
834: whip[4]: c5n8{r1 r6} - c2n8{r6 r9} - c2n9{r9 r8} - c5n9{r8 .} ==> r3c4 ≠ 8
818: whip[4]: c5n8{r1 r6} - c2n8{r6 r9} - c2n9{r9 r8} - c5n9{r8 .} ==> r1c8 ≠ 8
(find-anti-backdoor-pairs)
(print-current-resolution-state) for the standard rc-view
(print-current-resolution-state-rn-view) for the rn-view
(print-current-resolution-state-cn-view) for the cn-view
(print-current-resolution-state-bn-view) for the bn-view
(print-current-resolution-state-all-views) for the four views
.86.79..54.985.76.75...698..9.5..8765.768..2986..975..9.871.65.6.59.8..7.7..65.98
(solve ".86.79..54.985.76.75...698..9.5..8765.768..2986..975..9.871.65.6.59.8..7.7..65.98")
(print-current-resolution-state-all-views)
standard rc-view:
Physical rows are rows, physical columns are columns. Data are digits.
123 8 6 1234 7 9 1234 134 5
4 123 9 8 5 123 7 6 123
7 5 123 1234 234 6 9 8 1234
123 9 1234 5 234 1234 8 7 6
5 134 7 6 8 134 134 2 9
8 6 1234 1234 9 7 5 134 134
9 234 8 7 1 234 6 5 234
6 1234 5 9 234 8 1234 134 7
123 7 1234 234 6 5 1234 9 8
The folloiwng representations may be used e.g. to more easily spot
rn-, cn- or bn- bivalue pairs (also named bilocal pairs), mono-typed-chains,
hidden subsets and fishes (which will appear as naked subsets in the proper space.
rn-view:
Physical rows are rows, physical columns are digits. Data are columns.
1478 147 1478 478 9 3 5 2 6
269 269 269 1 5 8 7 4 3
349 3459 3459 459 2 6 1 8 7
136 1356 1356 356 4 9 8 7 2
267 8 267 267 1 4 3 5 9
3489 34 3489 3489 7 2 6 1 5
5 269 269 269 8 7 4 3 1
278 257 2578 2578 3 1 9 6 4
137 1347 1347 347 6 5 2 9 8
cn-view:
Physical rows are columns, physical columns are digits. Data are rows.
149 149 149 2 5 8 3 6 7
258 278 2578 578 3 6 9 1 4
3469 3469 3469 469 8 1 5 7 2
136 1369 1369 1369 4 5 7 2 8
7 348 348 348 2 9 1 5 6
245 247 2457 457 9 3 6 8 1
1589 189 1589 1589 6 7 2 4 3
168 5 168 168 7 2 4 3 9
236 237 2367 367 1 4 8 9 5
bn-view:
Physical rows are blocks, physical columns are digits. Data are positions in a block.
159 159 159 4 8 3 7 2 6
167 1678 1678 178 5 9 2 4 3
1269 169 1269 129 3 5 4 8 7
1359 139 1359 359 4 8 6 7 2
367 237 2367 2367 1 4 9 5 8
489 5 489 489 7 3 2 1 6
579 2579 2579 259 6 4 8 3 1
2 357 357 357 9 8 1 6 4
457 347 3457 3457 2 1 6 9 8
+-------+-------+-------+
! . . . ! . . . ! . 3 1 !
! . 8 . ! . 4 . ! . . . !
! . 7 . ! . . . ! . . . !
+-------+-------+-------+
! 1 . 6 ! 3 . . ! . 7 . !
! 3 . . ! . . . ! . . . !
! . . . ! . 8 . ! . . . !
+-------+-------+-------+
! 5 4 . ! . . . ! 8 . . !
! . . . ! 6 . . ! 2 . . !
! . . . ! 1 . . ! . . . !
+-------+-------+-------+
.......31.8..4.....7.......1.63...7.3............8....54....8.....6..2.....1.....
SER = 7.1
4 6 5 8 279 29 79 3 1
29 8 1 2579 4 3 6 259 2579
29 7 3 259 1 6 59 8 4
1 29 6 3 29 5 4 7 8
3 259 8 4 6 7 1 259 259
7 259 4 29 8 1 3 6 259
5 4 279 279 3 29 8 1 6
8 1 79 6 579 4 2 59 3
6 3 279 1 2579 8 579 4 579
whip[1]: r1n2{c6 .} ==> r3c4 ≠ 2, r2c4 ≠ 2
hidden-single-in-a-row ==> r3c1 = 2
naked-single ==> r2c1 = 9
whip[1]: b3n9{r3c7 .} ==> r9c7 ≠ 9
whip[1]: b9n7{r9c9 .} ==> r9c5 ≠ 7, r9c3 ≠ 7
4 6 5 8 279 29 79 3 1
9 8 1 57 4 3 6 25 257
2 7 3 59 1 6 59 8 4
1 29 6 3 29 5 4 7 8
3 259 8 4 6 7 1 259 259
7 259 4 29 8 1 3 6 259
5 4 279 279 3 29 8 1 6
8 1 79 6 579 4 2 59 3
6 3 29 1 259 8 57 4 579
cn-view:
Physical rows are columns, physical columns are digits. Data are rows.
4 3 5 1 7 9 6 8 2
8 456 9 7 56 1 3 2 456
2 79 3 6 1 4 78 5 789
9 67 4 5 23 8 27 1 367
3 149 7 2 89 5 18 6 1489
6 17 2 8 4 3 5 9 17
5 8 6 4 39 2 19 7 13
7 25 1 9 258 6 4 3 58
1 256 8 3 2569 7 29 4 569
biv-chain-cn[3]: c7n7{r9 r1} - c5n7{r1 r8} - c5n5{r8 r9} ==> r9c7 ≠ 5
stte
Users browsing this forum: No registered users and 1 guest