Help With Sudoku Explainer

Interactive on-site game threads go here

Re: Help With Sudoku Explainer

Postby coloin » Mon Mar 02, 2015 6:56 pm

Having problems getting SE batch file to work.
Have installed java
Have downloaded the updated .jar file
I have got it to work in the past ....

I tried installing into /using different directories - jre and bin but the command line fails.....

Is windows 8 the problem still ?

C
coloin
 
Posts: 2494
Joined: 05 May 2005
Location: Devon

Re: Help With Sudoku Explainer

Postby m_b_metcalf » Mon Mar 02, 2015 7:56 pm

champagne helped me with a similar problem on Windows 8 (I don't remember it happening on 8.1). You need to set the path correctly:

Control Panel
System and Security
System
Advanced System Settings
Environment Variables
Path

then make sure Java is in that path, or add it.

HTH

Mike Metcalf
User avatar
m_b_metcalf
2017 Supporter
 
Posts: 13622
Joined: 15 May 2006
Location: Berlin

Re: Help With Sudoku Explainer

Postby champagne » Tue Mar 03, 2015 4:06 am

coloin wrote:Having problems getting SE batch file to work.
Have installed java
Have downloaded the updated .jar file
I have got it to work in the past ....

I tried installing into /using different directories - jre and bin but the command line fails.....

Is windows 8 the problem still ?

C


I think Mike gave the right clue.

It's true that in the past Java updated the path as many applications do. May-be the problem came with the 64 bits version.
after the batch version work, You'll see also a strange warning, but the task is done.
champagne
2017 Supporter
 
Posts: 7455
Joined: 02 August 2007
Location: France Brittany

Re: Help With Sudoku Explainer

Postby coloin » Thu Mar 05, 2015 7:26 pm

Yes thanks for that.
I needed to put the java in the path !
I got the warning ! but I ignored it !
C
coloin
 
Posts: 2494
Joined: 05 May 2005
Location: Devon

Sudoku Explainer 1.2.1.3 source code

Postby 1to9only » Fri Aug 03, 2018 1:50 pm

Does anyone still have the java source code for the patterns game version of SudokuExplainer, as downloaded from this post: http://forum.enjoysudoku.com/help-with-sudoku-explainer-t6677-30.html#p233994 (version 1.2.1.3)? Or point me to where it can be downloaded. Thanks.

I can get hold of 1.2.1 source code, but I think this is without the fixes for the patterns game. I've repackaged the existing 1.2.1.3 jar file without the gui, but there is no speed improvements. I've built lksudoku's 1.2.9 version using the latest jdk (8u181), and some ratings are different!!

Thanks if you can help.
User avatar
1to9only
 
Posts: 4177
Joined: 04 April 2018

Re: Help With Sudoku Explainer

Postby champagne » Fri Aug 03, 2018 2:21 pm

I likely have this stored, but to let you know, Patrice has a c++ version of the code "giving the same ratings" till the nested level.
champagne
2017 Supporter
 
Posts: 7455
Joined: 02 August 2007
Location: France Brittany

Re: Sudoku Explainer 1.2.1.3 source code

Postby dobrichev » Fri Aug 03, 2018 3:45 pm

1to9only wrote:Does anyone still have the java source code for the patterns game version of SudokuExplainer...


I have the same problem. I collected some versions, presumably of "core" and "the batch processing patch" but had no time to go further and join, compile, and test them.
dobrichev
2016 Supporter
 
Posts: 1863
Joined: 24 May 2010

Re: Help With Sudoku Explainer

Postby 1to9only » Fri Aug 03, 2018 5:36 pm

I also downloaded a serate.tgz file containing the serate.java and Solver.java files - they have the correct timestamps (2 Jan 2009) and the serate code has the correct version (1.2.1.3) - so I'm looking for the 1.2.1.2 SE source code, presumably containing the patterns game fixes...

Machine conversion from java to C++ and C# has improved in recent years - I'll use software to convert the 1.2.1 SE code and serate.tgz to C++, and try compiling it in Visual Studio, and see what comes out...
User avatar
1to9only
 
Posts: 4177
Joined: 04 April 2018

Re: Help With Sudoku Explainer

Postby dobrichev » Fri Aug 03, 2018 7:32 pm

Java to C++ conversion was successfully done and reported in this forum years ago. Try searching the forum, I have no reference to this discussion. From memory, there was 2X speed improvement reported w/o any other changes made. Personally I never did such migration and have no idea whether, where and how manual invention must be done in order to compile a functional equivalent.

The initial source code remains open issue and after the disappearance of the original source site I have no answer what is the "right" source code version. Even not sure whether it was the latest published code in the original site. Fortunately there are several clones in the web and possibly one of them is the right one.
dobrichev
2016 Supporter
 
Posts: 1863
Joined: 24 May 2010

Re: Help With Sudoku Explainer

Postby 1to9only » Sun Sep 09, 2018 6:18 pm

This is my custom version to display SudokuExplainer hints when it rates a sudoku puzzle.

Usage is similar to calling serate, use this command to call up hints:
Code: Select all
java.exe -Xrs -Xmx500m -cp SEHINTS.jar diuf.sudoku.test.hints --input=file.txt

Output is written to the screen, it can be redirected to a file.
Note: The SEHINTS.jar further below does not contain the gui and serate code.
Here are some examples (the puzzles are from patterns game 322):

.1......23....14......3..5....1...6...5.7.3...2...3.....2.4.....8.6....16......7. ED=1.2/1.2/1.2
Hidden Text: Show
.1......23....14......3..5....1...6...5.7.3...2...3.....2.4.....8.6....16......7.
1.2, Hidden Single: R3C1: 2 in block
1.2, Hidden Single: R3C7: 1 in block
1.2, Hidden Single: R1C8: 3 in block
1.2, Hidden Single: R9C5: 1 in block
1.2, Hidden Single: R7C1: 1 in block
1.2, Hidden Single: R6C3: 1 in block
1.2, Hidden Single: R5C2: 6 in block
1.2, Hidden Single: R6C5: 6 in block
1.2, Hidden Single: R5C8: 1 in block
1.2, Hidden Single: R4C7: 2 in block
1.2, Hidden Single: R8C8: 2 in block
1.2, Hidden Single: R9C9: 4 in block
1.2, Hidden Single: R6C8: 4 in block
1.2, Hidden Single: R7C9: 3 in block
1.2, Hidden Single: R9C4: 3 in block
1.2, Hidden Single: R8C3: 3 in block
1.2, Hidden Single: R4C2: 3 in block
1.2, Hidden Single: R8C1: 4 in block
1.2, Hidden Single: R4C3: 4 in block
1.2, Hidden Single: R3C2: 4 in block
1.2, Hidden Single: R7C2: 7 in block
1.2, Hidden Single: R9C2: 5 in block
1.0, Hidden Single: R9C3: 9 in block
1.0, Hidden Single: R2C2: 9 in column
1.2, Hidden Single: R1C1: 5 in block
1.2, Hidden Single: R9C6: 2 in block
1.0, Hidden Single: R9C7: 8 in row
1.2, Hidden Single: R5C4: 2 in block
1.2, Hidden Single: R2C5: 2 in block
1.2, Hidden Single: R2C4: 5 in block
1.2, Hidden Single: R5C6: 4 in block
1.2, Hidden Single: R1C4: 4 in block
1.2, Hidden Single: R8C6: 7 in block
1.2, Hidden Single: R3C4: 7 in block
1.2, Hidden Single: R7C7: 6 in block
1.2, Hidden Single: R8C7: 5 in block
1.0, Hidden Single: R7C8: 9 in block
1.0, Hidden Single: R2C8: 8 in column
1.0, Hidden Single: R8C5: 9 in row
1.2, Hidden Single: R7C6: 5 in block
1.0, Hidden Single: R7C4: 8 in block
1.0, Hidden Single: R6C4: 9 in column
1.2, Hidden Single: R4C5: 5 in block
1.0, Hidden Single: R4C6: 8 in block
1.0, Hidden Single: R1C5: 8 in column
1.2, Hidden Single: R3C3: 8 in block
1.2, Hidden Single: R6C9: 5 in block
1.2, Hidden Single: R5C9: 8 in block
1.0, Hidden Single: R5C1: 9 in row
1.2, Hidden Single: R6C1: 8 in block
1.0, Hidden Single: R4C1: 7 in block
1.0, Hidden Single: R4C9: 9 in row
1.0, Hidden Single: R6C7: 7 in block
1.0, Hidden Single: R1C7: 9 in column
1.2, Hidden Single: R3C6: 9 in block
1.0, Hidden Single: R1C6: 6 in block
1.0, Hidden Single: R1C3: 7 in row
1.0, Hidden Single: R2C3: 6 in block
1.0, Hidden Single: R2C9: 7 in row
1.0, Hidden Single: R3C9: 6 in block
ED=1.2/1.2/1.2

.1......23....45......6..7....1...4...5.7.3...2...8.....6.5.....9.8....12......8. ED=6.7/6.7/6.7
Hidden Text: Show
.1......23....45......6..7....1...4...5.7.3...2...8.....6.5.....9.8....12......8.
6.7, Forcing X-Chain: R2C5.1 on
1.2, Hidden Single: R1C5: 8 in block
1.2, Hidden Single: R3C7: 1 in block
1.5, Hidden Single: R4C7: 8 in column
1.2, Hidden Single: R5C8: 2 in block
1.2, Hidden Single: R6C8: 1 in block
1.2, Hidden Single: R5C1: 1 in block
1.2, Hidden Single: R5C2: 8 in block
1.2, Hidden Single: R9C3: 1 in block
1.2, Hidden Single: R7C1: 8 in block
1.2, Hidden Single: R7C6: 1 in block
1.5, Hidden Single: R8C8: 5 in column
1.2, Hidden Single: R9C2: 5 in block
1.5, Hidden Single: R5C4: 4 in row
2.3, Naked Single: R3C2: 4
1.2, Hidden Single: R1C7: 4 in block
1.5, Hidden Single: R7C9: 4 in row
1.5, Hidden Single: R9C5: 4 in row
2.8, Claiming: Cells R4C5,R6C5: 9 in column and block
1.5, Hidden Single: R5C9: 9 in row
1.0, Hidden Single: R5C6: 6 in row
1.2, Hidden Single: R9C4: 6 in block
1.2, Hidden Single: R8C7: 6 in block
1.2, Hidden Single: R7C7: 2 in block
1.5, Hidden Single: R9C7: 9 in column
1.0, Hidden Single: R6C7: 7 in column
1.2, Hidden Single: R7C4: 9 in block
1.2, Hidden Single: R9C9: 7 in block
1.0, Hidden Single: R7C8: 3 in block
1.0, Hidden Single: R7C2: 7 in row
1.0, Hidden Single: R9C6: 3 in row
1.2, Hidden Single: R3C9: 3 in block
1.2, Hidden Single: R1C4: 3 in block
1.2, Hidden Single: R2C9: 8 in block
1.2, Hidden Single: R3C3: 8 in block
1.2, Hidden Single: R2C3: 2 in block
1.2, Hidden Single: R8C3: 3 in block
1.0, Hidden Single: R8C1: 4 in block
1.2, Hidden Single: R4C2: 3 in block
1.0, Hidden Single: R2C2: 6 in column
1.2, Hidden Single: R1C8: 6 in block
1.0, Hidden Single: R2C8: 9 in block
1.0, Hidden Single: R2C4: 7 in row
1.2, Hidden Single: R6C3: 4 in block
1.2, Hidden Single: R6C5: 3 in block
1.2, Hidden Single: R4C5: 9 in block
1.0, Hidden Single: R8C5: 2 in column
1.0, Hidden Single: R8C6: 7 in block
1.2, Hidden Single: R6C1: 9 in block
1.2, Hidden Single: R1C3: 9 in block
1.0, Hidden Single: R4C3: 7 in column
1.0, Hidden Single: R4C1: 6 in block
1.2, Hidden Single: R1C1: 7 in block
1.0, Hidden Single: R3C1: 5 in block
1.0, Hidden Single: R1C6: 5 in row
1.2, Hidden Single: R3C6: 9 in block
1.0, Hidden Single: R3C4: 2 in block
1.0, Hidden Single: R6C4: 5 in column
1.0, Hidden Single: R4C6: 2 in block
1.0, Hidden Single: R4C9: 5 in row
1.0, Hidden Single: R6C9: 6 in block
ED=6.7/6.7/6.7

.1......23....45......6..7....7...1...5.3.8...4...9.....7.5.....9.2....48......3. ED=9.9/9.9/9.2
Hidden Text: Show
.1......23....45......6..7....7...1...5.3.8...4...9.....7.5.....9.2....48......3.
9.2, Contradiction Forcing Chain: R3C2.2 on ==> R6C5.8 both on & off
9.3, Contradiction Forcing Chain: R3C6.8 on ==> R5C4.1 both on & off
9.3, Contradiction Forcing Chain: R3C4.8 on ==> R4C5.4 both on & off
9.4, Contradiction Forcing Chain: R2C2.8 on ==> R4C7.4 both on & off
9.3, Contradiction Forcing Chain: R4C2.2 on ==> R5C2.7 both on & off
9.4, Contradiction Forcing Chain: R3C6.3 on ==> R5C4.6 both on & off
9.4, Contradiction Forcing Chain: R8C6.6 on ==> R5C1.2 both on & off
9.5, Contradiction Forcing Chain: R7C1.2 on ==> R6C1.6 both on & off
9.6, Contradiction Forcing Chain: R7C4.8 on ==> R4C5.4 both on & off
9.5, Cell Forcing Chains: R5C2 ==> R2C5.8 off
9.5, Cell Forcing Chains: R5C2 ==> R6C4.1 off
9.8, Contradiction Forcing Chain: R4C7.3 on ==> R1C8.8 both on & off
9.9, Contradiction Forcing Chain: R8C6.1 on ==> R5C4.4 both on & off
9.9, Contradiction Forcing Chain: R2C5.1 on ==> R8C7.6 both on & off
9.3, Contradiction Forcing Chain: R7C4.1 on ==> R2C4.8 both on & off
9.4, Contradiction Forcing Chain: R9C4.1 on ==> R2C8.8 both on & off
9.5, Contradiction Forcing Chain: R9C6.1 on ==> R2C3.2 both on & off
9.5, Contradiction Forcing Chain: R9C3.6 on ==> R6C7.6 both on & off
9.5, Contradiction Forcing Chain: R9C2.6 on ==> R9C5.4 both on & off
9.2, Contradiction Forcing Chain: R2C3.8 on ==> R5C4.6 both on & off
9.4, Contradiction Forcing Chain: R8C8.6 on ==> R6C7.6 both on & off
9.2, Region Forcing Chains: 5 in row ==> R3C3.8 off
9.3, Cell Forcing Chains: R8C1 ==> R8C3.6 off
9.0, Contradiction Forcing Chain: R1C1.6 on ==> R3C1.5 both on & off
9.3, Contradiction Forcing Chain: R3C9.8 on ==> R5C1.9 both on & off
1.5, Hidden Single: R3C2: 8 in row
1.5, Hidden Single: R9C2: 5 in column
1.2, Hidden Single: R8C8: 5 in block
2.6, Pointing: Cells R7C8,R7C9: 8 in block and row
9.0, Contradiction Forcing Chain: R6C3.2 on ==> R4C7.4 both on & off
9.1, Contradiction Forcing Chain: R7C1.6 on ==> R6C1.2 both on & off
9.1, Region Forcing Chains: 6 in row ==> R6C1.6 off
9.1, Contradiction Forcing Chain: R1C1.4 on ==> R6C7.7 both on & off
9.2, Contradiction Forcing Chain: R6C3.6 on ==> R1C3.4 both on & off
9.1, Contradiction Forcing Chain: R5C9.6 on ==> R8C6.8 both on & off
9.2, Contradiction Forcing Chain: R5C1.6 on ==> R6C8.2 both on & off
9.2, Region Forcing Chains: 2 in column ==> R4C9.3 off
2.6, Pointing: Cells R6C7,R6C9: 3 in block and row
9.2, Contradiction Forcing Chain: R1C4.5 on ==> R1C8.4 both on & off
9.2, Contradiction Forcing Chain: R2C2.6 on ==> R8C5.1 both on & off
2.6, Pointing: Cells R1C3,R2C3: 6 in block and column
9.2, Contradiction Forcing Chain: R5C8.6 on ==> R3C1.2 both on & off
9.2, Contradiction Forcing Chain: R7C1.1 on ==> R9C9.1 both on & off
2.3, Naked Single: R7C1: 4
9.0, Contradiction Forcing Chain: R6C4.8 on ==> R2C2.2 both on & off
2.8, Claiming: Cells R1C4,R2C4: 8 in column and block
9.0, Region Forcing Chains: 5 in block ==> R4C9.9 off
8.8, Contradiction Forcing Chain: R4C7.6 on ==> R6C4.5 both on & off
8.9, Contradiction Forcing Chain: R3C3.2 on ==> R4C3.9 both on & off
9.0, Contradiction Forcing Chain: R8C6.7 on ==> R8C1.6 both on & off
8.9, Contradiction Forcing Chain: R8C7.1 on ==> R1C6.3 both on & off
8.9, Cell Forcing Chains: R8C7 ==> R6C7.7 off
2.6, Pointing: Cells R5C9,R6C9: 7 in block and column
8.9, Cell Forcing Chains: R9C3 ==> R4C3.2 off
7.8, Nishio Forcing Chain: R5C6.2 on ==> R9C3.2 both on & off
8.3, Region Forcing Chains: 5 in column ==> R3C6.1 off
2.6, Pointing: Cells R2C4,R3C4: 1 in block and column
8.4, Region Forcing Chains: 1 in column ==> R6C9.5 off
1.2, Hidden Single: R4C9: 5 in block
1.2, Hidden Single: R6C4: 5 in block
3.4, Hidden Pair: Cells R3C1,R3C6: 2,5 in row
8.5, Cell Forcing Chains: R7C2 ==> R1C6.3 off
2.6, Pointing: Cells R1C4,R3C4: 3 in block and column
3.6, Naked Triplet: Cells R5C4,R7C4,R9C4: 4,6,9 in column
2.6, Pointing: Cells R1C5,R2C5: 9 in block and column
3.6, Naked Triplet: Cells R1C1,R1C5,R1C6: 5,7,9 in row
8.3, Cell Forcing Chains: R6C7 ==> R5C8.2 off
2.8, Claiming: Cells R5C1,R5C2: 2 in row and block
4.2, XY-Wing: Cells R5C4,R5C8,R7C4 on value 9
7.2, Forcing Chain: R1C1.9 off
1.5, Hidden Single: R1C5: 9 in row
2.6, Pointing: Cells R2C3,R3C3: 9 in block and column
2.5, Direct Hidden Triplet: Cells R1C3,R2C3,R3C3: 4,6,9 in column
2.6, Pointing: Cells R8C1,R8C3: 1 in block and row
3.0, Naked Pair: Cells R4C2,R7C2: 3,6 in column
2.6, Pointing: Cells R4C1,R4C2: 6 in block and row
7.0, Bidirectional Cycle: R8C3,R8C6,R4C6,R4C3
7.1, Bidirectional Cycle: R2C3,R2C8,R5C8,R1C8,R1C3
7.1, Bidirectional Cycle: R3C6,R4C6,R6C5,R8C5,R2C5
7.1, Forcing Chain: R3C7.3 off
7.2, Bidirectional Cycle: R2C5,R8C5,R6C5,R6C3,R6C1,R1C1,R1C6
1.5, Hidden Single: R5C6: 1 in row
1.2, Hidden Single: R5C4: 6 in block
1.2, Hidden Single: R4C5: 4 in block
1.2, Hidden Single: R5C8: 4 in block
1.2, Hidden Single: R3C7: 4 in block
1.2, Hidden Single: R1C3: 4 in block
1.2, Hidden Single: R2C3: 6 in block
1.2, Hidden Single: R3C3: 9 in block
1.2, Hidden Single: R2C8: 9 in block
1.2, Hidden Single: R9C5: 1 in block
1.2, Hidden Single: R9C4: 4 in block
1.2, Hidden Single: R7C4: 9 in block
1.5, Hidden Single: R7C7: 1 in column
1.2, Hidden Single: R7C8: 2 in block
1.2, Hidden Single: R7C9: 8 in block
1.2, Hidden Single: R1C8: 8 in block
1.0, Hidden Single: R6C8: 6 in column
1.2, Hidden Single: R2C4: 8 in block
1.2, Hidden Single: R3C4: 1 in block
1.0, Hidden Single: R1C4: 3 in column
1.2, Hidden Single: R2C9: 1 in block
1.2, Hidden Single: R3C9: 3 in block
1.0, Hidden Single: R1C7: 6 in block
1.2, Hidden Single: R6C7: 3 in block
1.2, Hidden Single: R4C7: 2 in block
1.2, Hidden Single: R6C5: 2 in block
1.0, Hidden Single: R4C6: 8 in block
1.2, Hidden Single: R3C6: 2 in block
1.0, Hidden Single: R3C1: 5 in row
1.2, Hidden Single: R2C2: 2 in block
1.0, Hidden Single: R1C1: 7 in block
1.0, Hidden Single: R1C6: 5 in row
1.0, Hidden Single: R2C5: 7 in block
1.0, Hidden Single: R8C5: 8 in column
1.2, Hidden Single: R5C1: 2 in block
1.2, Hidden Single: R5C2: 7 in block
1.0, Hidden Single: R5C9: 9 in row
1.0, Hidden Single: R6C9: 7 in block
1.0, Hidden Single: R9C9: 6 in column
1.2, Hidden Single: R6C3: 8 in block
1.0, Hidden Single: R6C1: 1 in row
1.2, Hidden Single: R4C1: 9 in block
1.0, Hidden Single: R8C1: 6 in column
1.2, Hidden Single: R4C2: 6 in block
1.0, Hidden Single: R4C3: 3 in block
1.0, Hidden Single: R7C2: 3 in column
1.0, Hidden Single: R8C3: 1 in block
1.0, Hidden Single: R7C6: 6 in row
1.2, Hidden Single: R8C6: 3 in block
1.0, Hidden Single: R9C6: 7 in block
1.0, Hidden Single: R8C7: 7 in row
1.0, Hidden Single: R9C7: 9 in block
ED=9.9/9.9/9.2

[Edit 3 Nov] I've retired SEHINTS.jar. It had been downloaded 2 times. If you are looking to display SE hints, scroll down about 10 posts, and download SukakuExplainer.jar [Edit 5 Aug] see here.
Last edited by 1to9only on Mon Aug 05, 2019 8:07 am, edited 3 times in total.
User avatar
1to9only
 
Posts: 4177
Joined: 04 April 2018

Re: Help With Sudoku Explainer

Postby 1to9only » Thu Oct 25, 2018 9:41 am

I made a further change to getHintsHint() (in Solver.java), changing:
Code: Select all
String s = "";
int w = (int)((ruleDiff + 0.05) * 10);

to this:
Code: Select all
String s = "";
for (int i=0; i<81; i++) {
    int n = grid.getCellValue(i%9,i/9);
    s += (n==0)?".":n;
}
s += " ";
int w = (int)((ruleDiff + 0.05) * 10);

The code block also needs to be moved to after the hint.apply(); line.

This modification causes the puzzle to be displayed on its way to being solved, e.g:
.1......23....14......3..5....1...6...5.7.3...2...3.....2.4.....8.6....16......7. ED=1.2/1.2/1.2
Hidden Text: Show
Code: Select all
.1......23....14......3..5....1...6...5.7.3...2...3.....2.4.....8.6....16......7.
.1......23....14..2...3..5....1...6...5.7.3...2...3.....2.4.....8.6....16......7. 1.2, Hidden Single: R3C1: 2 in block
.1......23....14..2...3.15....1...6...5.7.3...2...3.....2.4.....8.6....16......7. 1.2, Hidden Single: R3C7: 1 in block
.1.....323....14..2...3.15....1...6...5.7.3...2...3.....2.4.....8.6....16......7. 1.2, Hidden Single: R1C8: 3 in block
.1.....323....14..2...3.15....1...6...5.7.3...2...3.....2.4.....8.6....16...1..7. 1.2, Hidden Single: R9C5: 1 in block
.1.....323....14..2...3.15....1...6...5.7.3...2...3...1.2.4.....8.6....16...1..7. 1.2, Hidden Single: R7C1: 1 in block
.1.....323....14..2...3.15....1...6...5.7.3...21..3...1.2.4.....8.6....16...1..7. 1.2, Hidden Single: R6C3: 1 in block
.1.....323....14..2...3.15....1...6..65.7.3...21..3...1.2.4.....8.6....16...1..7. 1.2, Hidden Single: R5C2: 6 in block
.1.....323....14..2...3.15....1...6..65.7.3...21.63...1.2.4.....8.6....16...1..7. 1.2, Hidden Single: R6C5: 6 in block
.1.....323....14..2...3.15....1...6..65.7.31..21.63...1.2.4.....8.6....16...1..7. 1.2, Hidden Single: R5C8: 1 in block
.1.....323....14..2...3.15....1..26..65.7.31..21.63...1.2.4.....8.6....16...1..7. 1.2, Hidden Single: R4C7: 2 in block
.1.....323....14..2...3.15....1..26..65.7.31..21.63...1.2.4.....8.6...216...1..7. 1.2, Hidden Single: R8C8: 2 in block
.1.....323....14..2...3.15....1..26..65.7.31..21.63...1.2.4.....8.6...216...1..74 1.2, Hidden Single: R9C9: 4 in block
.1.....323....14..2...3.15....1..26..65.7.31..21.63.4.1.2.4.....8.6...216...1..74 1.2, Hidden Single: R6C8: 4 in block
.1.....323....14..2...3.15....1..26..65.7.31..21.63.4.1.2.4...3.8.6...216...1..74 1.2, Hidden Single: R7C9: 3 in block
.1.....323....14..2...3.15....1..26..65.7.31..21.63.4.1.2.4...3.8.6...216..31..74 1.2, Hidden Single: R9C4: 3 in block
.1.....323....14..2...3.15....1..26..65.7.31..21.63.4.1.2.4...3.836...216..31..74 1.2, Hidden Single: R8C3: 3 in block
.1.....323....14..2...3.15..3.1..26..65.7.31..21.63.4.1.2.4...3.836...216..31..74 1.2, Hidden Single: R4C2: 3 in block
.1.....323....14..2...3.15..3.1..26..65.7.31..21.63.4.1.2.4...34836...216..31..74 1.2, Hidden Single: R8C1: 4 in block
.1.....323....14..2...3.15..341..26..65.7.31..21.63.4.1.2.4...34836...216..31..74 1.2, Hidden Single: R4C3: 4 in block
.1.....323....14..24..3.15..341..26..65.7.31..21.63.4.1.2.4...34836...216..31..74 1.2, Hidden Single: R3C2: 4 in block
.1.....323....14..24..3.15..341..26..65.7.31..21.63.4.172.4...34836...216..31..74 1.2, Hidden Single: R7C2: 7 in block
.1.....323....14..24..3.15..341..26..65.7.31..21.63.4.172.4...34836...2165.31..74 1.2, Hidden Single: R9C2: 5 in block
.1.....323....14..24..3.15..341..26..65.7.31..21.63.4.172.4...34836...2165931..74 1.0, Hidden Single: R9C3: 9 in block
.1.....3239...14..24..3.15..341..26..65.7.31..21.63.4.172.4...34836...2165931..74 1.0, Hidden Single: R2C2: 9 in column
51.....3239...14..24..3.15..341..26..65.7.31..21.63.4.172.4...34836...2165931..74 1.2, Hidden Single: R1C1: 5 in block
51.....3239...14..24..3.15..341..26..65.7.31..21.63.4.172.4...34836...21659312.74 1.2, Hidden Single: R9C6: 2 in block
51.....3239...14..24..3.15..341..26..65.7.31..21.63.4.172.4...34836...21659312874 1.0, Hidden Single: R9C7: 8 in row
51.....3239...14..24..3.15..341..26..6527.31..21.63.4.172.4...34836...21659312874 1.2, Hidden Single: R5C4: 2 in block
51.....3239..214..24..3.15..341..26..6527.31..21.63.4.172.4...34836...21659312874 1.2, Hidden Single: R2C5: 2 in block
51.....3239.5214..24..3.15..341..26..6527.31..21.63.4.172.4...34836...21659312874 1.2, Hidden Single: R2C4: 5 in block
51.....3239.5214..24..3.15..341..26..6527431..21.63.4.172.4...34836...21659312874 1.2, Hidden Single: R5C6: 4 in block
51.4...3239.5214..24..3.15..341..26..6527431..21.63.4.172.4...34836...21659312874 1.2, Hidden Single: R1C4: 4 in block
51.4...3239.5214..24..3.15..341..26..6527431..21.63.4.172.4...34836.7.21659312874 1.2, Hidden Single: R8C6: 7 in block
51.4...3239.5214..24.73.15..341..26..6527431..21.63.4.172.4...34836.7.21659312874 1.2, Hidden Single: R3C4: 7 in block
51.4...3239.5214..24.73.15..341..26..6527431..21.63.4.172.4.6.34836.7.21659312874 1.2, Hidden Single: R7C7: 6 in block
51.4...3239.5214..24.73.15..341..26..6527431..21.63.4.172.4.6.34836.7521659312874 1.2, Hidden Single: R8C7: 5 in block
51.4...3239.5214..24.73.15..341..26..6527431..21.63.4.172.4.6934836.7521659312874 1.0, Hidden Single: R7C8: 9 in block
51.4...3239.52148.24.73.15..341..26..6527431..21.63.4.172.4.6934836.7521659312874 1.0, Hidden Single: R2C8: 8 in column
51.4...3239.52148.24.73.15..341..26..6527431..21.63.4.172.4.693483697521659312874 1.0, Hidden Single: R8C5: 9 in row
51.4...3239.52148.24.73.15..341..26..6527431..21.63.4.172.45693483697521659312874 1.2, Hidden Single: R7C6: 5 in block
51.4...3239.52148.24.73.15..341..26..6527431..21.63.4.172845693483697521659312874 1.0, Hidden Single: R7C4: 8 in block
51.4...3239.52148.24.73.15..341..26..6527431..21963.4.172845693483697521659312874 1.0, Hidden Single: R6C4: 9 in column
51.4...3239.52148.24.73.15..3415.26..6527431..21963.4.172845693483697521659312874 1.2, Hidden Single: R4C5: 5 in block
51.4...3239.52148.24.73.15..3415826..6527431..21963.4.172845693483697521659312874 1.0, Hidden Single: R4C6: 8 in block
51.48..3239.52148.24.73.15..3415826..6527431..21963.4.172845693483697521659312874 1.0, Hidden Single: R1C5: 8 in column
51.48..3239.52148.24873.15..3415826..6527431..21963.4.172845693483697521659312874 1.2, Hidden Single: R3C3: 8 in block
51.48..3239.52148.24873.15..3415826..6527431..21963.45172845693483697521659312874 1.2, Hidden Single: R6C9: 5 in block
51.48..3239.52148.24873.15..3415826..65274318.21963.45172845693483697521659312874 1.2, Hidden Single: R5C9: 8 in block
51.48..3239.52148.24873.15..3415826.965274318.21963.45172845693483697521659312874 1.0, Hidden Single: R5C1: 9 in row
51.48..3239.52148.24873.15..3415826.965274318821963.45172845693483697521659312874 1.2, Hidden Single: R6C1: 8 in block
51.48..3239.52148.24873.15.73415826.965274318821963.45172845693483697521659312874 1.0, Hidden Single: R4C1: 7 in block
51.48..3239.52148.24873.15.734158269965274318821963.45172845693483697521659312874 1.0, Hidden Single: R4C9: 9 in row
51.48..3239.52148.24873.15.734158269965274318821963745172845693483697521659312874 1.0, Hidden Single: R6C7: 7 in block
51.48.93239.52148.24873.15.734158269965274318821963745172845693483697521659312874 1.0, Hidden Single: R1C7: 9 in column
51.48.93239.52148.24873915.734158269965274318821963745172845693483697521659312874 1.2, Hidden Single: R3C6: 9 in block
51.48693239.52148.24873915.734158269965274318821963745172845693483697521659312874 1.0, Hidden Single: R1C6: 6 in block
51748693239.52148.24873915.734158269965274318821963745172845693483697521659312874 1.0, Hidden Single: R1C3: 7 in row
51748693239652148.24873915.734158269965274318821963745172845693483697521659312874 1.0, Hidden Single: R2C3: 6 in block
51748693239652148724873915.734158269965274318821963745172845693483697521659312874 1.0, Hidden Single: R2C9: 7 in row
517486932396521487248739156734158269965274318821963745172845693483697521659312874 1.0, Hidden Single: R3C9: 6 in block
ED=1.2/1.2/1.2
User avatar
1to9only
 
Posts: 4177
Joined: 04 April 2018

Re: Help With Sudoku Explainer

Postby tarek » Mon Oct 29, 2018 10:28 am

Hi 1to9only,

I'm not sure if you'll find the time but can you disable the check for minimum number of clues in explainer.

IMO That would allow us to load Pencil-mark only sudokus onto explainer & use it as a solver/helper/rater for Pencil-mark only sudoku (Sukaku).

Thanks,

tarek
User avatar
tarek
 
Posts: 3762
Joined: 05 January 2006

Re: Help With Sudoku Explainer

Postby 1to9only » Mon Oct 29, 2018 1:37 pm

tarek wrote:I'm not sure if you'll find the time but can you disable the check for minimum number of clues in explainer.

I think the minimum clues is 17 - removing the check can be done - by not calling the checking code!

tarek wrote:IMO That would allow us to load Pencil-mark only sudokus onto explainer & use it as a solver/helper/rater for Pencil-mark only sudoku (Sukaku).

Can you post an example pm grid? [To save me time. :) I can probably search the forum for examples...]

I think new code may be required to read pencil-marks instead of cell numbers.

Also SE (usually) is given a puzzle, and for each empty cell SE calls 'rebuildPotentialValues' (pencil-marks), I don't know if this will conflict with input pencil-marks - some code changes may be required!!
User avatar
1to9only
 
Posts: 4177
Joined: 04 April 2018

Re: Help With Sudoku Explainer

Postby tarek » Mon Oct 29, 2018 3:08 pm

Hi 1yo9only,

I was probably talking about the GUI rather than reading from file. IIRC you can paste a penci-Mark grid into the GUI but it won’t go any further.

Anything that requires more than disabling a command line will be a hassle and as you said will require re-writing some code. Although that is nice, it wasn’t my intention.

I’ll post 2 examples shortly. A pencilmark grid (which is the popular format). The other is 729 line puzzle which is how I store these puzzles for reference.

Thanks,

tarek
User avatar
tarek
 
Posts: 3762
Joined: 05 January 2006

Re: Explainer v Pencilmark only sudoku

Postby tarek » Mon Oct 29, 2018 3:14 pm

Sukaku puzzle from Ruud 1st in thread "Pencilmark only Sudoku"
Code: Select all
.------------------------------.------------------------------.------------------------------.
| 1257      23479     12479    | 2468      1245679   14568    | 579       357       13458    |
| 135679    12456789  4567     | 35678     2356      256789   | 24569     234       35679    |
| 2348      1256      1235678  | 12478     345789    1479     | 45679     134       126789   |
:------------------------------+------------------------------+------------------------------:
| 12356789  45679     356      | 138       2456      123489   | 124567    138       12467    |
| 123468    134679    34679    | 2468      15678     12346789 | 12346789  78        123456   |
| 2578      1268      346789   | 5689      12345678  458      | 1234567   679       1245789  |
:------------------------------+------------------------------+------------------------------:
| 234567    24678     12458    | 19        13456789  1234689  | 2358      234589    12679    |
| 378       1689      145689   | 123456789 1234678   2578     | 126       12345689  3589     |
| 13568     13479     13489    | 13789     34568     35689    | 123478    67        235678   |
'------------------------------'------------------------------'------------------------------'


Here is one of mine published in the same thread.
the 729 character line representation is first followed by the pencil mark grid underneath it
Code: Select all
123456789.23456789.23456789.23456789.23456789.23456789.234567891234567891234567891234567891.34567891.34567891.34567891234567891.34567891.345678912345678912345678912...678912...678912345678912...678912.4.678912.45678912.4.678912...678912...678912.45678912.45678912345678912.45678912.45678912.45678912.45678912.4567891234567891.3.567891.3.567891.3.567891.3.567891.3.567891.3.567891.34567891.3.56789123456789123456789.23456.89.2345..89.23456789.2345..89.23456.89.2345..89.2345.789.2345..89123.567.9123.567.91234567.9123.567.91234567.91234567.91234567891234567.9123.567.912.4.678912.4567891234.678912.4.678912345678912.45678912.45678912.4.67891234.6789123456.891.3456.891.3456.891.3456.89123456.891.3456.891.3456.89123456789123456.89
:-----------------------------------------------------------------------------------------------:
| 123456789 23456789  23456789  | 23456789  23456789  23456789  | 23456789  123456789 123456789 |
| 123456789 13456789  13456789  | 13456789  123456789 13456789  | 13456789  123456789 123456789 |
| 126789    126789    123456789 | 126789    1246789   12456789  | 1246789   126789    126789    |
:-----------------------------------------------------------------------------------------------:
| 12456789  12456789  123456789 | 12456789  12456789  12456789  | 12456789  12456789  123456789 |
| 1356789   1356789   1356789   | 1356789   1356789   1356789   | 13456789  1356789   123456789 |
| 123456789 2345689   234589    | 23456789  234589    2345689   | 234589    2345789   234589    |
:-----------------------------------------------------------------------------------------------:
| 1235679   1235679   12345679  | 1235679   12345679  12345679  | 123456789 12345679  1235679   |
| 1246789   12456789  12346789  | 1246789   123456789 12456789  | 12456789  1246789   12346789  |
| 12345689  1345689   1345689   | 1345689   12345689  1345689   | 1345689   123456789 12345689  |
:-----------------------------------------------------------------------------------------------:


tarek
User avatar
tarek
 
Posts: 3762
Joined: 05 January 2006

PreviousNext

Return to Interactive games