A sudoku code
Brief description
A Sudoku code returning a sudoku partial grid (sudoku problem) and the corresponding completed grid (sudoku solution), such as partial and completed grids
.
The verbose version, that further gives a detailed description of what the program does, could be useful as tutorial example. Example :
partial and completed grids with explanations
.
Available
Available as a web service.
You can run the software directly from your browser as a web service :
Grids information is returned into the output stream. The returned_type parameter of the web service allows to choose how to receive it :
returned_type=stdout.txt : to get the output stream as a .txt file.
returned_type=run.zip : to get the .zip run folder containing the output stream __WS__stdout.txt (+ the error stream __WS__stderr.txt that may be useful to investigate).
Web service to get one sudoku grids (both partial and completed) :
Web service to further get a detailed description of what the program does (verbose version) :
Note
The sudoku web services, hosted by the ws web services (based on HTTP protocol), can be called by many other ways : from a browser (like above), from any softwares written in a language supporting HTTP protocol (Python, R, C++, Java, Php…), from command line tools (cURL…)…
Example of calling the sudoku web services from a terminal by cURL :
Commands (replace indice value by any value in 1…17999) :
curl --output mygrids.txt -F 'indice=778' -F 'returned_type=stdout.txt' http://147.100.179.250/api/tool/sudoku curl --output myrun.zip -F 'indice=778' -F 'returned_type=run.zip' http://147.100.179.250/api/tool/sudoku # verbose version curl --output mygrids_details.txt -F 'indice=778' -F 'returned_type=stdout.txt' http://147.100.179.250/api/tool/sudoku/tut curl --output myrun_details.zip -F 'indice=778' -F 'returned_type=run.zip' http://147.100.179.250/api/tool/sudoku/tutResponses corresponding with the requests above :
__WS__stdout.txt into myrun.zip has the same content as
mygrids.txt
mygrids_details.txt
(__WS__stdout.txt into myrun_details.zip has the same content)__WS__stdout.txt into myrun_details.zip has the same content as
mygrids_details.txt