YZF_Sudoku

Programs which generate, solve, and analyze Sudoku puzzles

Re: YZF_Sudoku

Postby ghfick » Sat May 09, 2020 1:20 am

I have only one typo for you.
In 'All Possible Steps' :
Double Jexocet : ||Junior [ take out the || ]
A larger issue is the action when one clicks to go to 'All Possible Steps'. For unclear reasons, sometimes 609 just freezes. It is apparently recomputing an updated solution path but sometimes 609 will take 30 seconds or much longer. The bottom panel flickers while this action is underway. Nothing short of a 'Force Quit' will stop it.
May I suggest that all actions like this should be an option. Maybe this could be turned on or off with a selection in the Options tab.
I am still using 609 V2 as the .ini file works well with it.
ghfick
 
Posts: 232
Joined: 06 April 2016
Location: Calgary, Alberta, Canada youtube.com/@gordonfick

Re: YZF_Sudoku

Postby eleven » Mon May 11, 2020 12:00 am

ghfick wrote:If your OS is Linux/Unix, I use Wine and both YZF_Sudoku and XSudo run quite well.

I tried YZF_Sudoku with wine now (ubuntu 19.10). Basically it works, but it crashes both when i try to paste a puzzle and when i want to load one from a file (wine: Unhandled page fault on read access to 0x00000000 at address ...).
When i enter a puzzle manually, it does not help me (something like "correct your errors first", though it can rate it).
Any hint ?
eleven
 
Posts: 3094
Joined: 10 February 2008

Re: YZF_Sudoku

Postby yzfwsf » Mon May 11, 2020 3:44 pm

1. Fix the bug that can't solve sukaku
2. Fix the bug that Unique Rectangle process (when solving sukaku)
3. Add sukaku production capability to puzzle generator, but unable to score it, now take the preliminary method of controlling the number of candidates
4. Add sukaku back door search
For the release of 610 version, Sorry, ur type7 has a bug in sukaku, please download the revision below
Last edited by yzfwsf on Tue May 12, 2020 5:20 am, edited 2 times in total.
yzfwsf
 
Posts: 852
Joined: 16 April 2019

Re: YZF_Sudoku

Postby ghfick » Mon May 11, 2020 5:32 pm

Unfortunately, 610 will not launch for me using wine. I have tried various options.

It is true that 609 would only run partially with wine. Puzzles had to be entered manually. Puzzles could not be saved.

I abandoned MSWindows years ago. I would encourage yzfwsf to develop his solver in a way that is not dependent on any platform. One of the strengths of HoDoKu was that it was written [and runs] with Java. Although Java has been updated over the past 8 years, HoDoKu continues to run reasonably well [it does crash on occasion, not sure why]

Andrew Stuart and Phillip Beeby developed their solvers to run from websites.

Sudoku Explainer [SE] does run well with wine. In fact cut-and-paste does work with SE.

I am not a programmer so I must accept that the generous contributors of their software have to make implementation decisions.
ghfick
 
Posts: 232
Joined: 06 April 2016
Location: Calgary, Alberta, Canada youtube.com/@gordonfick

Re: YZF_Sudoku

Postby ghfick » Mon May 11, 2020 8:05 pm

I now understand how to use 610. You need to copy the 2 .dll files and the .ini file into the folder holding 610.
Then it runs like 609.
ghfick
 
Posts: 232
Joined: 06 April 2016
Location: Calgary, Alberta, Canada youtube.com/@gordonfick

Re: YZF_Sudoku

Postby yzfwsf » Mon May 11, 2020 10:06 pm

I've never used linux before, see if it helps
https://askubuntu.com/questions/433739/clipboard-syncronization-between-wine-and-x11

BTW:The program will monitor the change of clipboard and update the menu status. Please see if the Edit > Paste menu bar is gray? If gray, the program cannot get the data of the system clipboard.

Please try to paste the data into the text box at the bottom. If you can, please let me know. Then i can modify the program to provide paste function in another way.
If not, there is nothing I can do.
yzfwsf
 
Posts: 852
Joined: 16 April 2019

Re: YZF_Sudoku

Postby eleven » Mon May 11, 2020 11:47 pm

yzfwsf wrote:Please try to paste the data into the text box at the bottom. If you can, please let me know.

No, that did not work either.

Please don't see that as any form of criticism.
I realized, that you made great work with your program, and it is nice to have also with restricted features.
I tried for a while, but could not find out, why wine crashed here (nvidia, 32/64 bits ??).
eleven
 
Posts: 3094
Joined: 10 February 2008

Re: YZF_Sudoku

Postby yzfwsf » Tue May 12, 2020 12:18 am

eleven wrote:
yzfwsf wrote:No, that did not work either.

Please don't see that as any form of criticism.
I realized, that you made great work with your program, and it is nice to have also with restricted features.
I tried for a while, but could not find out, why wine crashed here (nvidia, 32/64 bits ??).

Thank you for your feedback, because I can't test without wine environment. In addition, the information I get from Internet search may be a bug of wine. Can you use other programs run by wine to get clipboard data?
BTW: I'm not a professional programmer, just an amateur.

Fix bug in UR Type 7
Update execution files only. Please download two files together. Download > unzip > replace 609 exe
YZF_Sudoku610.part1.rar
(256 KiB) Downloaded 129 times
YZF_Sudoku610.part2.rar
(160.42 KiB) Downloaded 135 times
yzfwsf
 
Posts: 852
Joined: 16 April 2019

Re: YZF_Sudoku

Postby Hajime » Tue May 12, 2020 8:28 am

Hallo yzfwsf,

In "2 skyscrapers in sequence not so good idea" you posted a piece of code about findBugOne.
Halfway a For Next statement

Code: Select all
For j=0 to 2
     other statements
Next
If j>2 then Return 0


It is compiler-dependent what the value of j is after the For-Next statement.
It can be 2, 3 or another value on another platform/OS.

This is an example of assumptions that may cause the portability problem. Not sure

Hajime
User avatar
Hajime
 
Posts: 1350
Joined: 20 April 2018
Location: Fryslân

Re: YZF_Sudoku

Postby eleven » Tue May 12, 2020 2:03 pm

yzfwsf wrote:I've never used linux before, see if it helps
https://askubuntu.com/questions/433739/clipboard-syncronization-between-wine-and-x11

No, copy/paste works well e.g. with notepad, also opening (puzzle) files.

This is the backtrace from the core dump.

Backtrace:
=>0 0x00342d35 EntryPoint+0xffffffff() in wsfsolver (0x0176f5f0)
1 0x00344c4a EntryPoint+0xffffffff() in wsfsolver (0x0176f5fc)
2 0x0048b087 in yzf_sudoku (+0x8b086) (0x0176f7f4)

So something seems to go wrong with the call of wsfsolver when using wine.
eleven
 
Posts: 3094
Joined: 10 February 2008

Re: YZF_Sudoku

Postby yzfwsf » Tue May 12, 2020 3:09 pm

Hi eleven:
Wsfsolver.dll is compiled using VS2010. Is it not compatible with your wine? Yes, skfr is also compiled with VS2010. Somehow, if I compile with GCC, they will run unstable in windows.

A DLL compiled by g++ is attached here to see if it can help you. One is "-O2", another is "-O3".
WSFSolver-O2.7z
(22.83 KiB) Downloaded 132 times

WSFSolver.7z
(27.56 KiB) Downloaded 119 times
Last edited by yzfwsf on Tue May 12, 2020 3:59 pm, edited 2 times in total.
yzfwsf
 
Posts: 852
Joined: 16 April 2019

Re: YZF_Sudoku 610

Postby tarek » Tue May 12, 2020 3:23 pm

Just downloaded your latest updated version on Windows.

Very pleased with the features it currently supports including the PM / Sukaku

Well done!!!

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

Re: YZF_Sudoku

Postby eleven » Tue May 12, 2020 4:53 pm

yzfwsf,

thanks for your efforts, but now the core dump (for both versions and both pasting and reading from a file) says:

Unhandled exception: page fault on read access to 0x00000000 in 32-bit code
...
Backtrace:
=>0 0x6c6c551c Grade+0x2ac() in wsfsolver (0x00000000)

Reading a file does not seem to be a problem, because i can get the message "File is not a valid puzzle file".

Apart from that the versions seem to work like the other.
eleven
 
Posts: 3094
Joined: 10 February 2008

Re: YZF_Sudoku

Postby yzfwsf » Fri May 15, 2020 11:11 pm

eleven wrote:yzfwsf,

thanks for your efforts, but now the core dump (for both versions and both pasting and reading from a file) says:

Unhandled exception: page fault on read access to 0x00000000 in 32-bit code
...
Backtrace:
=>0 0x6c6c551c Grade+0x2ac() in wsfsolver (0x00000000)

Reading a file does not seem to be a problem, because i can get the message "File is not a valid puzzle file".

Apart from that the versions seem to work like the other.

Function 'grade' in WSFSolver.dll , but it is only called when the puzzle is generated, and will not be called when the file is read and pasted.
BTW: in your system, can the program generate puzzles by itself and use the solving function normally?
yzfwsf
 
Posts: 852
Joined: 16 April 2019

Re: YZF_Sudoku

Postby eleven » Sun May 17, 2020 6:30 pm

Yes, everything seems to work apart from handling other puzzle strings, be they from a file (which is read correctly) or the clipboard (which is working in the other programs).
For whatever reason (e.g. no memory allocated) wine seems to get a null pointer there.
eleven
 
Posts: 3094
Joined: 10 February 2008

PreviousNext

Return to Software

cron