need a cmd solver that reads/writes files

Programs which generate, solve, and analyze Sudoku puzzles

need a cmd solver that reads/writes files

Postby rvaiksaar » Wed Mar 20, 2013 6:33 am

I just need it to be able to read in.txt and write out.txt, I tried gsf's sudoku.exe but honestly even with the help manual I could not, or maybe someone can explain how can I make it simply read 1 puzzle and write out 1 solution. in.txt looks like this
Code: Select all
.1...2..45......9...218......8....6...7......3....65.......37...9.8....16......3.
and it posts in out.txt
Code: Select all
719652384
586374192
432189675
958431267
167528943
324796518
845913726
293867451
671245839


Is there any way to make it write out a single line like in in.txt?
Last edited by rvaiksaar on Wed Mar 20, 2013 8:29 pm, edited 1 time in total.
rvaiksaar
 
Posts: 1
Joined: 20 March 2013

Postby Pat » Wed Mar 20, 2013 1:23 pm


    gsf's software { broken link www2.research.att.com/~gsf/sudoku/ }
    can indeed show you the answer

    e.g.
    Code: Select all

    sudoku.EXE -f%#Ng <puzzle.TXT >answer.TXT


    or if you like a frame
    Code: Select all

    sudoku.EXE -f%#Fg <puzzle.TXT >answer.TXT

User avatar
Pat
 
Posts: 3448
Joined: 18 July 2005


Return to Software