The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Games::Sudoku::Html - Visualize and play collections of standard 9x9 Sudoku in your browser.

DESCRIPTION

A very simple Module which converts an array with sudoku puzzles into a static html page. Thus, long lists of your digital (text format) sudoku can be revised and played in a browser.

Currently only the standard sudoku are supported, no variants.

SYNOPSIS

  use Games::Sudoku::PatternSolver::Html qw( sudoku_html_page );

  @list = ( [$sudokuHash->{strPuzzle}, "<descriptive text with properties, rating, source, etc.>"], ... )
  $htmlpage = sudoku_html_page( \@list )

sudoku_html_page( arrayref )

Returns a scalar with a static html page, playable in a browser

Its only parameter is an array of arrays, each entry consisting of 2 items: an 81 character puzzle string and any descriptive text for the puzzle. You may put as many puzzles as you like into the array, they can all be played from the one, javascript-driven static page. Can also be used to play lists with numerous 9x9 Sudoku from various sources.

SCRIPTS

sudoku2html

After installation of Games::Sudoku::Html this command line script should be in your path. Flexible input options are available. Invoke >sudoku2html -h for details.

DEPENDENCIES

SEE ALSO

Games::Sudoku::PatternSolver::Generator, Games::Sudoku::Pdf

COPYRIGHT AND LICENSE

The following copyright notice applies to all the files provided in this distribution, including binary files, unless explicitly noted otherwise.

This software is copyright (c) 2024 by Steffen Heinrich

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.