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: 1733
Joined: 05 May 2005

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: 9212
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: 6543
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: 1733
Joined: 05 May 2005

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.
1to9only
 
Posts: 181
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: 6543
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: 1615
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...
1to9only
 
Posts: 181
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: 1615
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
Attachments
SEHINTS.zip
unzip for SEHINTS.jar
(124.68 KiB) Downloaded 2 times
SEHINTS-src.zip
java source code
(7.14 KiB) Downloaded 2 times
1to9only
 
Posts: 181
Joined: 04 April 2018

Previous

Return to Interactive games