Endroid Sudoku solver
The library that solves Sudoku puzzles in a jiffy.
Use Composer to install the library.
$ composer require endroid/sudoku
<?php use Endroid\Sudoku\Puzzle; // An difficult puzzle (Platinum Blonde) $puzzle = ' 000000012 000000003 002300400 001800005 060070800 000009000 008500000 900040500 470006000'; // Create the puzzle $sudoku = new Puzzle($puzzle); // Solve the puzzle echo $sudoku->solve();
Semantic versioning (semver) is applied as much as possible.
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.