Output file in standard format for all moves made

Everything about Sudoku that doesn't fit in one of the other sections

Output file in standard format for all moves made

Postby jco » Fri Jul 17, 2020 1:42 pm

Greetings!

I have recently joined this wonderful forum.

I am writing to ask if there exists a computer program that allows the user to save all the moves made when completing a sudoku grid. That output would have at the top the sudoku initial configuration, followed by information like “starting with all candidates provided” ou “starting without candidates provided”, and then all the moves. I know that Hodoku does something like this (without the second part) when the “solution path” is sent to print, but I dont know how to get this when the solution is not the one found by the code (it is the user own solution). Ideally, I would prefer something as standard as it is the input of various well-kwown formats for puzzles to be developed also for the writing of the output (the “game” moves). In summary, the output would be a text file with the input position at the top, the above mentioned information (on/off candidates) followed by the moves.
This text file would allow the user (later) to insert comments to justify certain eliminations made and also add overall comments at the end of the file.

Regards,
jco
jco
 
Posts: 8
Joined: 09 June 2020

Re: Output file in standard format for all moves made

Postby tarek » Sat Jul 18, 2020 5:44 pm

Hi jco,

Sukaku explainer should be able to do that for you using the command line input.

Download the latest release

Check the wiki pages on the github repository as they have enough information to fulfil your task

I’m on my mobile phone on the move so didn’t have time to post the links

Tarek
User avatar
tarek
 
Posts: 3726
Joined: 05 January 2006

Re: Output file in standard format for all moves made

Postby 1to9only » Sat Jul 18, 2020 9:18 pm

jco wrote:(it is the user own solution)

I think this is meant for the user (in play mode) solution path to be saved to file (for review and print).
I don't know if there is a great demand for this feature. Anyone else apart from OP wanting this feature?
New code to SukakuExplainer will be required!
SukakuExplainer project link: here.
SukakuExplainer download: here.
1to9only
 
Posts: 1807
Joined: 04 April 2018

Re: Output file in standard format for all moves made

Postby tarek » Sun Jul 19, 2020 7:57 am

Thanks 1to9only,

I can see the original question better now. Essentially what is desired is an Log of the custom game progress!

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

Re: Output file in standard format for all moves made

Postby jco » Sun Jul 19, 2020 12:53 pm

Hello Tarek and 1to9only,

Thank you both for the replies! I had Sukaku explainer installed, but it also seemed to me that such feature wasn't there. It seems natural to have the game (the solution path created by the user) recorded for further analysis and annotations. Otherwise, unless you have very good memory, or the puzzle is very simple, that information is lost.

Regards,
jco
jco
 
Posts: 8
Joined: 09 June 2020

Re: Output file in standard format for all moves made

Postby ghfick » Sun Jul 19, 2020 7:58 pm

Philip Beeby's solver allows you to select a set of steps from a list. The solution path then appears in a window beside.
www.philsfolly.net.au
ghfick
 
Posts: 86
Joined: 06 April 2016

Re: Output file in standard format for all moves made

Postby 1to9only » Tue Aug 04, 2020 3:35 pm

jco wrote:there exists a computer program that allows the user to save all the moves made when completing a sudoku grid

I've implemented this feature in my version of SukakuExplainer, a later version of the one based on SudokuExplainer here.
You can select 'Save Solution Path...' to save the partial solution path (current state) or complete solution path (solved state) to a file.
Download the jar file (zipped) from here.

It supports:
- the grid (pencilmarks) is shown before each step
- selecting a cell, and typing the number (keyboard entry)
- selecting a cell, and clicking on a candidate (mouse select)
- clicking 'Get all hints', selecting all/some hints, and clicking 'Solve step' (multiple steps)
- clicking 'Get next hint', clicking 'Solve step' (single step)
- undo is also supported

Example saved file:
Hidden Text: Show
Code: Select all
.2....8...5..49....8...3.5....73......5....742....63.......4...873.1....6.....7.3

+----------------------+----------------------+----------------------+
| 13479  2      14679  | 156    567    157    | 8      13469  1679   |
| 137    5      167    | 1268   4      9      | 126    1236   1267   |
| 1479   8      14679  | 126    267    3      | 12469  5      12679  |
+----------------------+----------------------+----------------------+
| 149    1469   14689  | 7      3      1258   | 12569  12689  125689 |
| 139    1369   5      | 1289   289    128    | 1269   7      4      |
| 2      149    14789  | 14589  589    6      | 3      189    1589   |
+----------------------+----------------------+----------------------+
| 159    19     129    | 235689 256789 4      | 12569  12689  125689 |
| 8      7      3      | 2569   1      25     | 24569  2469   2569   |
| 6      149    1249   | 2589   2589   258    | 7      12489  3      |
+----------------------+----------------------+----------------------+
Keyboard:Value:r7c1=5

+----------------------+----------------------+----------------------+
| 13479  2      14679  | 156    567    157    | 8      13469  1679   |
| 137    5      167    | 1268   4      9      | 126    1236   1267   |
| 1479   8      14679  | 126    267    3      | 12469  5      12679  |
+----------------------+----------------------+----------------------+
| 149    1469   14689  | 7      3      1258   | 12569  12689  125689 |
| 139    1369   5      | 1289   289    128    | 1269   7      4      |
| 2      149    14789  | 14589  589    6      | 3      189    1589   |
+----------------------+----------------------+----------------------+
| 5      19     129    | 23689  26789  4      | 1269   12689  12689  |
| 8      7      3      | 2569   1      25     | 24569  2469   2569   |
| 6      149    1249   | 2589   2589   258    | 7      12489  3      |
+----------------------+----------------------+----------------------+
Mouse:Value:r6c4=4

+----------------------+----------------------+----------------------+
| 13479  2      14679  | 156    567    157    | 8      13469  1679   |
| 137    5      167    | 1268   4      9      | 126    1236   1267   |
| 1479   8      14679  | 126    267    3      | 12469  5      12679  |
+----------------------+----------------------+----------------------+
| 149    1469   14689  | 7      3      1258   | 12569  12689  125689 |
| 139    1369   5      | 1289   289    128    | 1269   7      4      |
| 2      19     1789   | 4      589    6      | 3      189    1589   |
+----------------------+----------------------+----------------------+
| 5      19     129    | 23689  26789  4      | 1269   12689  12689  |
| 8      7      3      | 2569   1      25     | 24569  2469   2569   |
| 6      149    1249   | 2589   2589   258    | 7      12489  3      |
+----------------------+----------------------+----------------------+
Hidden Single: R2C4: 8 in block
Hidden Single: R6C3: 7 in block
Hidden Single: R7C4: 3 in block
Hidden Single: R7C5: 7 in block
Hidden Single: R5C2: 3 in column
Hidden Single: R1C6: 7 in column

+----------------------+----------------------+----------------------+
| 1349   2      1469   | 156    56     7      | 8      13469  169    |
| 137    5      16     | 8      4      9      | 126    1236   1267   |
| 1479   8      1469   | 126    26     3      | 12469  5      12679  |
+----------------------+----------------------+----------------------+
| 149    1469   14689  | 7      3      1258   | 12569  12689  125689 |
| 19     3      5      | 129    289    128    | 1269   7      4      |
| 2      19     7      | 4      589    6      | 3      189    1589   |
+----------------------+----------------------+----------------------+
| 5      19     129    | 3      7      4      | 1269   12689  12689  |
| 8      7      3      | 2569   1      25     | 24569  2469   2569   |
| 6      149    1249   | 259    2589   258    | 7      12489  3      |
+----------------------+----------------------+----------------------+
Hidden Single: R4C3: 8 in block
1to9only
 
Posts: 1807
Joined: 04 April 2018


Return to General