herbdoku-validator
v0.1.0
Published
A sudoku validator for advanced sudoku puzzles, inspired by crackingthecryptic
Downloads
4
Maintainers
Readme
Herbdoku - sudoku validator
Description
This is a open-source validator for advanced sudoku's, it is based on the sudoku community from crackingthecryptic.com (Discord link).
Getting started
Setup Herbdoku
- Install the package:
$ npm install herbdoku-validator
- When installed, you can import the library using
import
orrequire
:
import { Herbdoku } from "herbdoku-validator";
How to use
- Create a new instance of Herbdoku:
const herbdoku = new Herbdoku("1234341223414123", 4);
- Validate de sudoku by concatenating methods. Add build to get the final result:
herbdoku.validateRows().validateColumns().validateBoxes().build();
- Or use the
validateDefault()
-method to get the basic sudoku validation at once:
herbdoku.validateDefault().build();
Vision of the project
The vision of this project is to give everyone (the sudoku solvers and the sudoku setters) access to a powerful sudoku validator that doesn't only validate ordinary sudoku, but also more advanced sudoku rules.
Especially front-end developers of sudokupads might be happy with something like this.
Contributing
This is an open-source project and such everyone is free to contribute (NOTE: Not every contributor will necessarily be explicitly mentioned. This might change in the future.
Features
- Normal sudoku validation including the validation of rows, columns and boxes.
License
For the license, see LICENSE.