Skip to content

A simple NodeJS app that checks the validity of a Sudoku solution

License

Notifications You must be signed in to change notification settings

kabyab/SudokuChecker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SudokuChecker

This project helps check if your Sudoku solution is valid.

Requirements

This project requires NodeJS version 8.10.x or above.

Startup

Clone the repo. Then add a .txt file to the .inp folder, which contains the solution of the sudoku as 9X9 2D array. Somethings like this:

589714263
637829514
241536987
496258731
853197642
712643859
965471328
324985176
178362495

Then go to the lib\config.js file and type in the fileName, extension and encoding in the places provided. Right now I have a test file called input.txt in my .inp folder, thus my lib\config.js file looks like this:

var config = {};
config.values = {
    'fileName': 'input',
    'extension': '.txt',
    'encoding': 'utf8'
};
module.exports = config;

Once done, open up a command prompt at the root directory and type in node index.js to see the validity of your solution.

About

A simple NodeJS app that checks the validity of a Sudoku solution

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published