romanpiller / hlavolamy
Puzzle solving console.
1.0.1
2026-07-05 20:24 UTC
Requires
- php: ^8.2
- nette/di: ^3.2
- romanpiller/sudoku: ^1.0.1
- symfony/console: ^7.4
Requires (Dev)
- nette/tester: ^2.4.3
- phpstan/phpstan: ^2.0
- roave/security-advisories: dev-latest
- shipmonk/composer-dependency-analyser: ^1.8
- squizlabs/php_codesniffer: ^3.7
README
A CLI console application built on Symfony/Console with a DI container.
Features
- Static Analysis: PHPStan
- Unit Testing: Nette Tester
- Coding Standards: PHP CodeSniffer
Usage
The application provides commands to solve various puzzles.
Sudoku Solver
To solve a Sudoku puzzle, use the sudoku:solve command.
Example usage:
/bin/console sudoku:solve sudoku.txt temp/ -o true sudoku.html temp/
Parameters:
puzzleFile: Name of the file containing the Sudoku puzzle (e.g.,sudoku.txt).puzzlePath: Directory path where the puzzle file is located (e.g.,temp/).--displayOutputor-o true: (Optional) Output the result to standard output.solutionFile: (Optional) Name of the HTML file to save the solution.solutionPath: (Optional) Directory path where the solution file will be saved.