2017 © Pedro Peláez
 

library sudoku

Sudoku package for generating, validating and solving sudoku puzzles

image

coenmooij/sudoku

Sudoku package for generating, validating and solving sudoku puzzles

  • Wednesday, April 4, 2018
  • by coenmooij
  • Repository
  • 1 Watchers
  • 2 Stars
  • 17 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 7 Versions
  • 0 % Grown

The README.md

Scrutinizer Code Quality Code Intelligence Status Build Status, (*1)

sudoku

Library for generating, validating, solving sudoku puzzles, (*2)

Composer

To use this package, simply run composer require coenmooij/sudoku., (*3)

Usage

SudokuService

Exposes the main functionality of the library in a service., (*4)

Solvers

BacktrackSolver

Solves any solvable grid using an informed backtrack algorithm. Throws an UnsolvableException if it fails., (*5)

SimpleSolver

Solves the grid using only row, column and block checks. Will return the (partially) completed Grid., (*6)

Generators

SolutionGenerator

Generates a complete Grid, (*7)

PuzzleGenerator

Creates a puzzle based on a complete Grid and a Difficulty Difficulty ranges from 1-5 and can be accessed by a constant. e.g. Difficulty::EASY., (*8)

HintGenerator

From a grid it creates hints. It returns locations which can be solved by row, column & block checks. You can either get a random one or all of them., (*9)

GridSerializer

GridSerializer is a simple serializer that turns a 81 character string into a Grid and back. e.g. 642957138719843652538126794483712569976538421125694387294361875357489216861275943 Empty values will be serialized to 0 but the deserializer also accepts alphabetical characters as empty values., (*10)

Validator

DigValidator

Helper class to see if it is 'safe' to dig out the value at a certain Location. It checks whether the Grid is still uniquely solvable., (*11)

GridValidator

Simple utility class to check if all (row, column and block) constraints are still met., (*12)

The Versions

04/04 2018

dev-master

9999999-dev

Sudoku package for generating, validating and solving sudoku puzzles

  Sources   Download

MIT

The Requires

  • php >=7.1.0

 

The Development Requires

17/01 2018

1.0

1.0.0.0

Sudoku package for generating, validating and solving sudoku puzzles

  Sources   Download

MIT

The Requires

  • php >=7.1.0

 

The Development Requires

16/01 2018

0.2.3

0.2.3.0

Sudoku package for generating, validating and solving sudoku puzzles

  Sources   Download

MIT

The Requires

  • php >=7.1.0

 

The Development Requires

16/01 2018

v0.2.2

0.2.2.0

Sudoku package for generating, validating and solving sudoku puzzles

  Sources   Download

MIT

The Requires

  • php >=7.1.0

 

The Development Requires

30/10 2017

v0.2.1

0.2.1.0

Sudoku package for generating, validating and solving sudoku puzzles

  Sources   Download

MIT

The Requires

  • php >=7.1.0

 

The Development Requires

30/10 2017

v0.2

0.2.0.0

Sudoku package for generating, validating and solving sudoku puzzles

  Sources   Download

MIT

The Requires

 

The Development Requires

29/10 2017

v0.1

0.1.0.0

Sudoku package for generating, validating and solving sudoku puzzles

  Sources   Download

MIT

The Requires

 

The Development Requires