endroid / sudoku
Endroid Sudoku solver
Fund package maintenance!
endroid
Installs: 4 477
Dependents: 1
Suggesters: 0
Security: 0
Stars: 5
Watchers: 3
Forks: 1
Open Issues: 0
Requires
- php: ^8.2
Requires (Dev)
- endroid/quality: dev-main
Suggests
- roave/security-advisories: Avoids installation of package versions with vulnerabilities
README
By endroid
The library that solves Sudoku puzzles in a jiffy.
Installation
Use Composer to install the library.
$ composer require endroid/sudoku
Usage
<?php use Endroid\Sudoku\Puzzle; // Load a puzzle $sudoku = new Sudoku(' 000000012 000000003 002300400 001800005 060070800 000009000 008500000 900040500 470006000 '); // Solve the puzzle $solver = new Solver($sudoku); $solver->solve();
Versioning
Version numbers follow the MAJOR.MINOR.PATCH scheme. Backwards compatibility breaking changes will be kept to a minimum but be aware that these can occur. Lock your dependencies for production and test your code when upgrading.
License
This bundle is under the MIT license. For the full copyright and license information please view the LICENSE file that was distributed with this source code.