/sudoku_solver

A command line application for solving sudoku puzzles written in C.

Primary LanguageCMIT LicenseMIT

sudoku_solver README

A command line application for solving sudoku puzzles written in C.

Usage

  1. Sudoku puzzles are stored using the .su file format.

    Create a file named [name].su and open it with your prefered text editor.

  2. Save the sudoku you want to solve using the file structure below.

    A .su contains 9 rows. Each row has 9 fields and is written in a separate line. Zeros are representing empty fields.

    The following images visualize the structure:

  1. After executing the script you will be prompted to provide the path and the filename. Copy&Paste both without the file ending. The script will now solve your provided Sudoku.

  2. Once the sudoku has been successfully solved, you will be asked if you want to save the solution to a new file.

    Enter n to exit the program.

    Enter Y to receive a copy of the solution in the .su format. You therefore will have to specify a file name.