gsf sudoku tool - Help!

Programs which generate, solve, and analyze Sudoku puzzles

gsf sudoku tool - Help!

Postby Mathimagics » Wed Jan 31, 2018 2:44 pm

I am trying to get gsf's sudoku tool to work for automorphism checking (which it does admirably fast!).

This seems to work fine for getting automorphism counts for a batch of grids:
sudoku -f%v%,#%,%#aC GridList.txt


Output:
Code: Select all
123456789546987123897321546231645897465798231978132465312564978654879312789213654 # 54
123456789546987123897321546231645897465798231789213654312564978654879312978132465 # 18
123456789654879312978132465312564978546987123789213654231645897465798231897321546 # 18
...


And this command, according to the documentation, is supposed to just count the grids with automorphism counts > 1:

sudoku -e(%#An)>1 -f- -Ff%#an/%n GridList.txt


But this just displays 0/144 (144 is the number of grids in the file).

Can anyone help me out here?
User avatar
Mathimagics
2017 Supporter
 
Posts: 1926
Joined: 27 May 2015
Location: Canberra

Re: gsf sudoku tool - Help!

Postby Mathimagics » Wed Jan 31, 2018 3:17 pm

I found it.

In the expression -e(%#An)^>1 the "%#An" apparently assumes the input file is in compressed ("sudz") format.

I just substituted %#aC, which was used in the first example, and hey, presto! 8-)
User avatar
Mathimagics
2017 Supporter
 
Posts: 1926
Joined: 27 May 2015
Location: Canberra

More problems

Postby Mathimagics » Thu Feb 01, 2018 6:23 am

When I generate sudz files, they look the right size, but when I try to unpack them, or count automorphisms, I get absolutely nothing in response.

This is on Windows, BTW.

Anybody else had this problem?
User avatar
Mathimagics
2017 Supporter
 
Posts: 1926
Joined: 27 May 2015
Location: Canberra

Re: gsf sudoku tool - Help!

Postby eleven » Sat Feb 03, 2018 10:48 pm

Hi,

i just retried it with the 64-bit version under linux - no problem.

./sudoku-linux.i386-64 -gb299 -f '%#ec' -o 299.sudz
produced a file with 346952 bytes.

./sudoku-linux.i386-64 -e '(%#An)>1' -f- -Ff'%#an/%n' 299.sudz
wrote out
97/133302

./sudoku-linux.i386-64 -f'%v' 299.sudz > puzzles299.txt
wrote 133302 grids to the file.

You certainly know, that under windows you have to write %% for % in .bat files.
eleven
 
Posts: 3173
Joined: 10 February 2008

Re: gsf sudoku tool - Help!

Postby Mathimagics » Wed Feb 21, 2018 10:48 pm

Hi eleven,

I am sorry for the extreme lateness of this response! I got diverted into other problems and totally forgot to check back here for replies.

I know about the %% problem for Win batch files, that's not the problem.

Ok, now I have a Win 10-64 bit rig, perhaps the problem will disappear. But are there Win64 executables of gsf available? Or do I just have to run the 32-bit version?
User avatar
Mathimagics
2017 Supporter
 
Posts: 1926
Joined: 27 May 2015
Location: Canberra

Re: gsf sudoku tool - Help!

Postby tarek » Fri Feb 23, 2018 7:43 pm

I would take this opportunity to highlight how helpful gsf’s sudoku was/is/will be to the sudoku community. I hope that it continues to get the recognition it truly deserves!

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

Re: gsf sudoku tool - Help!

Postby Mathimagics » Sat Feb 24, 2018 2:00 am

I'll second that! Hats off to gsf ... 8-)
User avatar
Mathimagics
2017 Supporter
 
Posts: 1926
Joined: 27 May 2015
Location: Canberra


Return to Software