Skip to content
This repository has been archived by the owner on Oct 14, 2022. It is now read-only.

Latest commit

 

History

History
56 lines (36 loc) · 1.44 KB

README.md

File metadata and controls

56 lines (36 loc) · 1.44 KB

Insight Sodoku

A commandline sodoku solver for the Insight Data Engineering Fellows Program

Coding Deadline: November 3rd at 11pm

Command line program

I have chosen python3 as my primary development language, and I have built a simple command line program that allows the user to input csv files that contain a sudoku puzzle and solves the puzzle. The user can specify whether to save the solution in a CSV file or redirect to the stdout.

"Command line program"

The command line program allows the user two options: - To input the sudoku puzzle from a csv file and output the results to a csv file - To input the sudoku puzzle from a csv file and output to the standard output

For the first option, interacting with the command line can be as follows:

python3 main.py -i sudoku.csv -o solution.csv -v

"Result of fileoutput"

A solution.csv file is created in the directory containing the solution

For the second option, interacting with the command line can be as follows:

python3 main.py -i sudoku.csv -v

"Result of stdout"

Execute tests

Test cases have been created for three different sudoku puzzles. These cases can be found in the test directory

cd test

To execute tests

python3 test.py