endroid/sudoku

Endroid Sudoku solver

Installs: 2 375

Dependents: 0

Stars: 3

Watchers: 1

Forks: 1

Language: PHP

1.0.9 2015-07-04 19:48 UTC

README

By endroid

Build Status Latest Stable Version Total Downloads

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;

// 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();

Versioning

Version numbers follow the MAJOR.MINOR.PATCH scheme. Backwards compatible 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.