To Generate Sudoku puzzles by batch

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

To Generate Sudoku puzzles by batch

Postby Kiwy » Mon Jul 16, 2007 12:03 am

Is there a way to generate sudoku puzzles by batch?

I try Michael Kennett's program, works fine.

I used to generate sudoku by GSF's program works fine too, but new version got problems.
sudoku (GSF) version 2007-06-28

the command line I try is

C:\>sudoku -f"%#0v" -e "valid&&minimal==1" -g -q+FN-G -m -sp

nothing

the old version is OK,

C:\SG\>sudoku -f"%#0v" -e "valid&&minimal==1" -g -q+FN-G -m -sp

008006020020040000001003009065002000700000003000800560500700300000030080070100600
008006020920040000001000050065012000000000000000890560010000300000030087070100600
000060052000200940000005380000003020058010730010800000096500000085006000740020000
040003809010060002009007000000006040900040001060500000000600900400050080301200050

so did I miss something???

and any other freeware can generate sudoku by batch?
Kiwy
 
Posts: 8
Joined: 25 October 2006

Re: To Generate Sudoku puzzles by batch

Postby ronk » Mon Jul 16, 2007 1:00 am

Kiwy wrote:I used to generate sudoku by GSF's program works fine too, but new version got problems.
sudoku (GSF) version 2007-06-28

the command line I try is

C:\>sudoku -f"%#0v" -e "valid&&minimal==1" -g -q+FN-G -m -sp

nothing

so did I miss something???

This works ... sudoku -g -qFN-G -m -sp
ronk
2012 Supporter
 
Posts: 4764
Joined: 02 November 2005
Location: Southeastern USA

Postby Kiwy » Mon Jul 16, 2007 11:18 am

ronk, THANKS

Yes, I got it.

C:\>sudoku -f"%#0v" -e "valid&&minimal==1" -g -q+FN-G -m -sp

the problem is -q+FN, the "+"



> sudoku -g -m -qFN -n5 -f"%#0v"

It Works!

Is any other Freeware about to Generate Sudoku puzzles by batch?
Kiwy
 
Posts: 8
Joined: 25 October 2006

Postby ravel » Mon Jul 16, 2007 1:37 pm

If you only want random sudokus, you can also use dukuso's suexg. But you cannot generate sudokus with a given pattern (as is possible with gsf's program).
ravel
 
Posts: 998
Joined: 21 February 2006

Postby gsf » Mon Jul 16, 2007 2:57 pm

Kiwy wrote:C:\>sudoku -f"%#0v" -e "valid&&minimal==1" -g -q+FN-G -m -sp

the problem is -q+FN, the "+"

thanks
the handling of + here is a bug
although the original intention was probably -qFN-G rather than -q-G
(-q-G should be equivalent to -q+FN-G and will be the next time I post a solver update)
gsf
2014 Supporter
 
Posts: 7306
Joined: 21 September 2005
Location: NJ USA

Postby Kiwy » Mon Jul 16, 2007 4:16 pm

gsf wrote:
Kiwy wrote:C:\>sudoku -f"%#0v" -e "valid&&minimal==1" -g -q+FN-G -m -sp

the problem is -q+FN, the "+"

thanks
the handling of + here is a bug
although the original intention was probably -qFN-G rather than -q-G
(-q-G should be equivalent to -q+FN-G and will be the next time I post a solver update)


It is my honor,to use GSF such great work!
I am introduced GSF's Sudoku.exe both China and Taiwan
in my WebLog, hope not misleading

http://hi.baidu.com/kiwy07/blog/item/309117c2f212e337e4dd3b50.html
http://tw.myblog.yahoo.com/kiwy-sudoku/article?mid=1214&prev=1&next=1211

the solver, generator, and Canonical Form, Magic cell so many powerful stuff
Kiwy
 
Posts: 8
Joined: 25 October 2006

Postby Kiwy » Tue Jul 17, 2007 8:21 am

dukuso's suexg , but also suexmult

program to search all sudokus with given mask for clues

but I dont know how to generate sudokus with a given pattern

the usage
GSF's sudoku.exe
>sudoku -gt -n5 pattern.txt
nothing output, but crash
Kiwy
 
Posts: 8
Joined: 25 October 2006

Generate eandom Sudoku's in batch

Postby pollewoppeke » Wed Jul 18, 2007 9:40 am

My program (look at http://sudokuus.com) can generate sudokuus in batch. The version you can download at present time, does not but I am happy to compile for you the version that does. No patterns are possible at present time however. I could change my program in order to let it do that but would possibly make the program less simple and straightforward. Well, if you are interested, just see if you like the sudoku's my program generates and then tell me if you would like me to compile the version with batch facilities for you.
pollewoppeke
 
Posts: 3
Joined: 14 July 2007

Re: Generate eandom Sudoku's in batch

Postby Kiwy » Wed Jul 18, 2007 2:35 pm

pollewoppeke wrote:My program (look at http://sudokuus.com) can generate sudokuus in batch. The version you can download at present time, does not but I am happy to compile for you the version that does. No patterns are possible at present time however. I could change my program in order to let it do that but would possibly make the program less simple and straightforward. Well, if you are interested, just see if you like the sudoku's my program generates and then tell me if you would like me to compile the version with batch facilities for you.


If your program is kind of FreeWare, then I would like to have it.
Should not just me, but a lots of Sudoku FAN.

using pattern to generate Sudoku, is good.
Kiwy
 
Posts: 8
Joined: 25 October 2006

Oops

Postby pollewoppeke » Wed Jul 18, 2007 3:12 pm

I'm so sorry. I suddenly realize didn't interpret well what you meant with 'batch processing'. My program can make sudoku's continuously (batches of sudoku's so to speak) and write them to hard disk. So if you want 10.000 sudoku's to solve during your holydays, my program can help you :)

But I didn't add the possibility for command line executing, and I now see that this is what you want.

Of course my program is freeware. It's not that much or a thing. Just try it (http://sudokuus.com/sudoku.zip) and tell me what you think of it. If the concepts I used are viable, I am prepared to adapt it to some wishes (like command line executing or pattern using) of this community. I can also issue the source file if someone is interested.
pollewoppeke
 
Posts: 3
Joined: 14 July 2007


Return to General