Yogi wrote:Have now downloaded SukakuExplainer-1.18.1 but again I can’t make it work as a program.
Any ideas on where to find the starting exe file or how to activate it?
GitHub tells me I need to use the Command Line
java -cp SukakuExplainer.jar diuf.sudoku.test.serate –man
but it doesn’t work for me. Maybe I’m missing part of the instruction.
Hi Yogi,
Just discovered this thread.
I use Sudoku Explainer for SER(ating) on a Windows 10 laptop. In my scripts written in VBA, the script language for MS Office macros, I use the following command lines :
- Code: Select all
Set wshShell = vba.CreateObject("WScript.Shell")
res = wshShell.Run("java.exe -Xrs -Xmx500m -cp SukakuExplainer.jar diuf.sudoku.test.serate --format=""%g ED=%r/%p/%d"" --input=invoer.txt --output=uitvoer.txt", 0, True)
I can run my scripts under MS Word or MS Excel.
The names of the input and output files can of course be changed. You put the puzzle(s) to be rated in the input file and the results are available in the output file. The last two arguments are for hiding the DOS window (0) and for waiting for the result before proceeding with the execution of the next VBA command (True)
This works perfectly for me.
I use a similar command line for skfr(ating):
- Code: Select all
res = wshShell.Run("skfr_win32_v_2_0_1.exe", vbHide, True)
In this case the names of the input and output files are fixed.
This works perfectly as well. This rating tool is very fast compared tot SER, and can thus be used as a filter.
However, I have a problem with minlex calculation. As you probably know, you need one of two systems to check the originality of a new puzzle. I have been working with the maxlex system which was the norm until 2020. Nowadays, for reasons unclear to me, there seems to be a tendency towards using the minlex system, and mith is using it for actual and future inventories of new (high rated) puzzles in this forum. So I tried to switch to minlex as well. However, I have a problem with the minlex calculation command line:
- Code: Select all
s = wshShell.Run("sudoku-64.exe -qFN -f%#mc puzzles.txt > minlex.txt", vbHide, True)
The file puzzles.txt is read and treated. I can see this when I change vbHide(= 0) to 1. Then a black DOS screen opens and a list of clearly minlexed puzzles rapidly runs over the screen. However, the output file minlex.txt remains empty. At first, I thought that this was due to the VBA environment, but that cannot be the case as SER and skfr calculations function normally in the same environment.
The result (s) = 0 (no problem occurred).
When I remove the file minlex.txt, the command returns s = 1. I consider this as an indication that sudoku-64.exe tests the presence of that output file and sees a problem. When the file is present, s = 0. Why does the output file remain empty?
Over the past months, I have tested this over and over again, but to no avail.
Perhaps one of the other members of this forum can be of help.
In the mean time, I continue with my maxlex based system.
BTW, I am preparing a batch of new high rated puzzles before the summer. The last time a posted such a list was on last September 28th
As usual, I will post the new list on the thread "The hardest sudokus (new thread)"
Hendrik