Help With Sudoku Explainer

Interactive on-site game threads go here

Re: Help With Sudoku Explainer

Postby tarek » Mon Aug 12, 2019 11:52 am

These are 2 code modifications targeting Sudoku explainer GUI. So probably outside the scope of what we are trying to achieve here:

https://github.com/blindlf/SudokuExplainer targets some mouse use issues
https://github.com/Itsukara/SudokuExplainerPlus adds an undo button

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

Re: Help With Sudoku Explainer

Postby tarek » Wed Aug 14, 2019 3:22 pm

I will upload the last functional files (that haven't been modified) to the master repository as per 1to9Only's recommendation hopefully by tomorrow. It appears that the process of cleaning the directory structure may have resulted in some file instability
User avatar
tarek
 
Posts: 3762
Joined: 05 January 2006

Re: Help With Sudoku Explainer

Postby 1to9only » Wed Aug 14, 2019 4:32 pm

Thx. I was going to do this (sometime!) when I've found a suitable git client ...
User avatar
1to9only
 
Posts: 4175
Joined: 04 April 2018

Re: Help With Sudoku Explainer

Postby tarek » Wed Aug 14, 2019 10:09 pm

Another one for the "To do list"

This was a bug discovered by Pat and was discussed with a patch solution from Iksudoku. This fix hasn't merged into any version we are using now

http://forum.enjoysudoku.com/help-with-sudoku-explainer-t6677-19.html

On the repository, Some modifications to the GUI now allow parsing pencilmark grids in addition to the 729-character line puzzle!!! I think we have a more stable package now with a presentable Readme.md

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

Re: Help With Sudoku Explainer

Postby dobrichev » Thu Aug 15, 2019 6:53 am

lksudoku in the post related to Pat's bug gives reference to this small treasure that contains series of fixes as well as the source files.
These fixes were discussed here but I was not aware that the author also shared the source code.
dobrichev
2016 Supporter
 
Posts: 1850
Joined: 24 May 2010

Re: Sukaku explainer 1.2.1.5

Postby tarek » Thu Aug 15, 2019 4:33 pm

Mini-release of Suakau Explainer v1.2.1.5:
https://github.com/SudokuMonster/SukakuExplainer/releases/tag/v1.2.1.5

This version fixes the bugs arising from file structure re-organisation in previous release.
Some GUI modification will allow pasting Pencilmark grid, 729-character line grid & ordinary sudokus

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

Re: Help With Sudoku Explainer

Postby tarek » Sat Aug 17, 2019 6:52 pm

Interesting discussions and SE development / improvement ideas have been discussed in these 2 threads:
http://forum.enjoysudoku.com/sudoku-explainer-bugs-quirks-and-other-remarks-t30091.html
http://forum.enjoysudoku.com/team-project-c-or-c-explainer-like-rating-program-t30083.html

Several of the participants made individual improvements but you can see that Iksudoku fixed several bugs and shared this as dobrichev mentioned above

ronk in a different thread wrote:
  • Add 'Copy pencilmarks' and 'Paste pencilmarks' (with ctrl-shift-C and ctrl-shift-V as possible hotkeys)
  • Add 'Undo' and 'Redo' of solution path steps (with ctrl-Z and ctrl-shift-Z as possible hotkeys)

I think some of this has been done by somebody else in a different project
User avatar
tarek
 
Posts: 3762
Joined: 05 January 2006

Re: Help With Sudoku Explainer

Postby tarek » Sun Aug 25, 2019 12:22 am

Sukaku Explainer v.1.3.0.0 is out

See release notes & the main page for more info
User avatar
tarek
 
Posts: 3762
Joined: 05 January 2006

Re: v1.3.0.1

Postby tarek » Sat Aug 31, 2019 12:16 am

Sukaku Explainer v.1.3.0.1 is out. This version is still backward compatible with current Patterns Game serate and Sudoku Explainer.

Visit the Main page and the Batch mode command parameters page for more info.
User avatar
tarek
 
Posts: 3762
Joined: 05 January 2006

Re: Undo button

Postby tarek » Mon Sep 02, 2019 8:32 am

I've now integrated (and yes it was painful ;) ) the Undo button improvement in GUI. This was a separate project that was incorporated and the details of it can be tracked from this "Related projects page"

I modified some of it as well to allow for the Pencilmark grids which the GUI already handles.

These should appear in future releases.

A few little additions to the GUI generator are also to be added which should help with generating tailored puzzles of interest.

Meanwhile Mladen is currently working hard in the background with functionality improvements which hopefully speeds up difficult puzzle processing (Vanilla and sukaku). The rest of the contributors are providing important updates too but it is difficult to follow and detail here because their work is not in a direct fashion on the repository.

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

Re: Help With Sudoku Explainer

Postby tarek » Tue Sep 03, 2019 5:22 pm

A useful addition in the next release is the ability to copy into clipboard the current state of the puzzle in several format. This would allow harvesting a 729 character line representation of any pencilmark grid to feed into the command line solver if needed. The can be accessed via the Edit menu or pressing a specific key combination also mentioned in the Edit menu.

If you paste the following into GUI using Ctrl+V
Code: Select all
+----------------------+------------------------+-------------------+
| 356     36      4    | 2       89       789   | 1     79     356  |
| 9      e17      51   | 6       3       d47    | 58    2      458  |
| 2367    8       26   | 1      d49       5     | 34    79     346  |
+----------------------+------------------------+-------------------+
| 4       129     1259 | 3589    7        1389  | 6     158    1238 |
| 125     129     3    | 4       1589     6     | 7     158    128  |
| 67      67      8    | 35      2        13    | 34    145    9    |
+----------------------+------------------------+-------------------+
| 168     1469    169  | 7      c14589    2     | 58    3      1458 |
| 138     5      a19   | b389    6       b13489 | 2     148    7    |
| 1238    1234    7    | 358     1458     1348  | 9     6      1458 |
+----------------------+------------------------+-------------------+


Ctrl+C gives an 81 character grid:
Code: Select all
..42..1..
9..63..2.
.8.1.5...
4...7.6..
..34.67..
..8.2...9
...7.2.3.
.5..6.2.7
..7...96.

Ctrl+K gives an 81 character line:
Code: Select all
..42..1..9..63..2..8.1.5...4...7.6....34.67....8.2...9...7.2.3..5..6.2.7..7...96.

Ctrl+Z gives 729 character line (Used to process Pencilmark input in the command line solver):
Code: Select all
..3.56.....3..6......4......2..............89......7891..............7.9..3.56...........91.....7..1...5.........6.....3.........4..7......5..8..2..........45..8..23..67.........8..2...6...1...........4....9....5......34...........7.9..34.6......4.....12......912..5...9..3.5..89......7..1.3....89.....6...1...5..8.123....8.12..5....12......9..3.........4.....1...5..89.....6.........7..1...5..8.12.....8......67.......67.........8...3.5.....2.......1.3........34.....1..45............91....6.8.1..4.6..91....6..9......7..1..45..89.2...........5..8...3......1..45..8.1.3....8.....5....1.......9..3....89.....6...1.34...89.2.......1..4...8.......7..123....8.1234...........7....3.5..8.1..45..8.1.34...8.........9.....6...1..45..8.

Ctrl+J gives Pencilmark grid:
Code: Select all
+-------------------+-------------------+-------------------+
| 356   36    4     | 2     89    789   | 1     79    356   |
| 9     17    15    | 6     3     47    | 58    2     458   |
| 2367  8     26    | 1     49    5     | 34    79    346   |
+-------------------+-------------------+-------------------+
| 4     129   1259  | 3589  7     1389  | 6     158   1238  |
| 125   129   3     | 4     1589  6     | 7     158   128   |
| 67    67    8     | 35    2     13    | 34    145   9     |
+-------------------+-------------------+-------------------+
| 168   1469  169   | 7     14589 2     | 58    3     1458  |
| 138   5     19    | 389   6     13489 | 2     148   7     |
| 1238  1234  7     | 358   1458  1348  | 9     6     1458  |
+-------------------+-------------------+-------------------+
User avatar
tarek
 
Posts: 3762
Joined: 05 January 2006

Re: Help With Sudoku Explainer

Postby tarek » Mon Sep 16, 2019 10:10 am

The next release should have the following enhancements targeting the parameters of command line solver / rater (serate):

1. Batch solving (2 modes)
2. optional use of New rating scheme
3. control which techniques to use
4. overall time to process all puzzles can be sent to standard output
5. ability to send used parameters to standard output

This would end this phase of bug fixes/enhancements which focused on integrating some other related projects. The following phase will see work mostly re-focusing on the same issues that started this project which is efficiency and rating at the higher end of the ratings. There is always scope to do more based on feedback and how many people collaborating in the project.

If any programmer wants to collaborate in their own way & time, they could simply fork from the "Master" repository into their own and share their work in their own time.

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

Re: Help With Sudoku Explainer

Postby 1to9only » Thu Sep 19, 2019 9:55 am

From Revision of SE ratings and resolution rules:

I think some of lksudoku's UR/UL and BUG fixes are included in this release. These from patterns game 333 are misrated:
Code: Select all
12...3..44....5.67...48..2...5....3...2...4..67....9......69....615.....73....... # 0333  76    4.9/3.4/2.6
12...3..44....1.56...74..8...9....3...2...6..73....5......87....759.....36....... # 0333  78    4.8/3.0/2.6
12...3..44....5.36...71..8...9....2...2...6..38....9......48....456.....93....... # 0333  84    6.0/1.2/1.2
94...2..16....1.85...87..6...1....9...4...6..83....2......16....254.....41....... # 0333  87    5.3/1.2/1.2
12...3..45....2.67...54..8...9....3...1...8..43....6......78....159.....97....... # 0333  92    4.7/4.7/2.6
User avatar
1to9only
 
Posts: 4175
Joined: 04 April 2018

Re: Help With Sudoku Explainer

Postby tarek » Thu Sep 19, 2019 12:58 pm

1to9only wrote:From Revision of SE ratings and resolution rules:

I think some of lksudoku's UR/UL and BUG fixes are included in this release. These from patterns game 333 are misrated:
Code: Select all
12...3..44....5.67...48..2...5....3...2...4..67....9......69....615.....73....... # 0333  76    4.9/3.4/2.6
12...3..44....1.56...74..8...9....3...2...6..73....5......87....759.....36....... # 0333  78    4.8/3.0/2.6
12...3..44....5.36...71..8...9....2...2...6..38....9......48....456.....93....... # 0333  84    6.0/1.2/1.2
94...2..16....1.85...87..6...1....9...4...6..83....2......16....254.....41....... # 0333  87    5.3/1.2/1.2
12...3..45....2.67...54..8...9....3...1...8..43....6......78....159.....97....... # 0333  92    4.7/4.7/2.6


Thanks for the feedback.
lksudokus fixes and enhancements are summarized here: https://github.com/SudokuMonster/SukakuExplainer/wiki/lksudoku-SE-fixes
The bug fixes regarding Unique loop detection, BUG detection and Unique Rectangle/Loop Type 3 set detection have been integrated after testing. As they are bug fixes we didn't integrate them as an option but straight into the code, hence, the discrepancy in rating for some puzzles.

The enhancements will be included fully in the next release (and can be tested currently by cloning the repository and compiling it). I'll do a final round of testing on the extremely helpful file you posted (when I find time to download it) using the "batch solver" options which intial testing show no change in rating ER/EP/ED and a significant improvement in Rating speed. If the results remain consistent as I'm expecting then a new release that includes them will follow

All enhancement will be included as an option:
Code: Select all
--revisedRating=N (1: New rating scheme)
--batch=N (Batch solving mode  1: and 2: are 2 modes for batch solving)
--techs=TECHSTRING TECHSTRING: a string of 0s and 1s that will enable/disable available solving techniques

lksudoku's Chains length detection bug fix shows promising results with detecting shorter chains but there have been some puzzles where longer chains and therefore higher than original ratings given. Because of that It wasn't integrated (awaiting for a fix for the fix to takes place :lol:)

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

re: Sudoku Explainer

Postby Pat » Fri Sep 20, 2019 7:46 am

tarek wrote:The bug fixes regarding Unique loop detection, BUG detection and Unique Rectangle/Loop Type 3 set detection have been integrated after testing.

As they are bug fixes we didn't integrate them as an option but straight into the code, hence, the discrepancy in rating for some puzzles.

some bugs
really should be fixed
with no option;
that is
where the bug produced unpredictable results.

but most bugs of Sudoku Explainer
must be retained as an option,
to maintain compatibility.
User avatar
Pat
 
Posts: 4056
Joined: 18 July 2005

PreviousNext

Return to Interactive games