SiSeSuSo = Simple Serial Sudoku Solver

Programs which generate, solve, and analyze Sudoku puzzles

Re: SiSeSuSo = Simple Serial Sudoku Solver

Postby urhegyi » Wed Oct 02, 2024 7:21 pm

And the second one:
Image
Code: Select all
#1//B4,JS
1..2.5..8...........3...1..8.......7.52...81.4.......2..4...6...........3..7.1..6
111222233151111223555122233545666337545666737544666737448889777488999979448888999
Last edited by urhegyi on Thu Oct 03, 2024 1:44 pm, edited 1 time in total.
urhegyi
 
Posts: 748
Joined: 13 April 2020

Re: SiSeSuSo = Simple Serial Sudoku Solver

Postby Hajime » Thu Oct 03, 2024 9:18 am

Hi, Can you provide the 81-char strings, please.
But indeed. It should have found this xyz-wing.
I will look into this after my holiday.... No laptop present :shock:
User avatar
Hajime
 
Posts: 1377
Joined: 20 April 2018
Location: Fryslân

Re: SiSeSuSo = Simple Serial Sudoku Solver

Postby Hajime » Wed Oct 09, 2024 9:39 am

Uninitialized variable :twisted:
Also not happy with the elegance of the XYZ-routine.
Will take some time...
User avatar
Hajime
 
Posts: 1377
Joined: 20 April 2018
Location: Fryslân

Re: SiSeSuSo = Simple Serial Sudoku Solver

Postby Hajime » Thu Oct 10, 2024 10:29 am

Version 10 Oct 2024, 2024-10

The October 2024 version of SiSeSuSo.exe is now available at
https://sites.google.com/site/sisesuso.

  • (..W)XYZ method had a bug concerning un-initialized variable; fixed.

Thanks urhegyi for finding bugs.
Busy with pimping xyz-code and implementing grouped aic chains.
User avatar
Hajime
 
Posts: 1377
Joined: 20 April 2018
Location: Fryslân

Re: SiSeSuSo = Simple Serial Sudoku Solver

Postby Hajime » Fri Oct 11, 2024 3:39 pm

In Visual Studio 2019 (VB) I ran into this glitch:
Code: Select all
For i = 1 to 2
   Dim w as integer
   For j = 3 to 4
      w = w + j
   Next
   msgbox "w=" & w
Next
First time it answered w=7
Second time it answered w=14
The "Dim w" statement did not initialized w to zero the second time.

Is this "fascinating"?
I add "w = 0" just after the "Dim w" statement for expected results...
User avatar
Hajime
 
Posts: 1377
Joined: 20 April 2018
Location: Fryslân

Re: SiSeSuSo = Simple Serial Sudoku Solver

Postby dobrichev » Fri Oct 11, 2024 7:37 pm

Hajime wrote:Is this "fascinating"?

Yes, it's really fun.
It is also reproduced in Do and Try blocks, without the inner loop.
A compilation error occurs in C#.
I imagine they debated whether to fix the problem or document it. The final decision was to document it, but this part of the documentation did not pass the censorship.

BTW Dim w as new integer also works.

The lesson for me is to continue to stay away from these technologies.
dobrichev
2016 Supporter
 
Posts: 1863
Joined: 24 May 2010

Previous

Return to Software