stanjan/sudoku

Sudoku generators, solvers and readers.

v0.1.1 2021-06-29 18:47 UTC

This package is auto-updated.

Last update: 2024-04-29 04:21:37 UTC


README

This project uses logic to generate and solve sudoku's. It also uses OpenCV and OCR to read sudoku's from photo's.

Latest version License PHP dependency Pipeline Coverage

Installation

Composer

$ composer require stanjan/sudoku

OpenCV

This library requires OpenCV to process images before applying OCR on them. Please follow the installation guide on https://github.com/php-opencv/php-opencv.

Information

OCR

The image sent to the OCR implementation gets preprocessed with OpenCV. For example:

OpenCV before image OpenCV after image

Supported OCR implementations:

Dev tools

You can use the Dockerfile in this repository for development.

PHPStan

$ vendor/bin/phpstan analyse

PHP-CS-fixer

Installation

$ composer install --working-dir=tools/php-cs-fixer

Usage

$ tools/php-cs-fixer/vendor/bin/php-cs-fixer fix ./ --dry-run --diff