Games::Sudoku::Component::TkPlayer::Controller - controls Tk Widgets and Sudoku Components
use Games::Sudoku::Component::TkPlayer::Controller; my $ctrl = Games::Sudoku::Component::TkPlayer::Controller->new;
This is an internal class but may show you how to use Games::Sudoku::Component.
creates an instance
erases an existing puzzle if any and creates a new one.
erases an existing puzzle if any and loads a new one.
saves a puzzle to a file.
locks a puzzle, so you can roll back the changes you make afterwards. Generated and loaded puzzles are locked by default.
unlocks a puzzle, so you can change an existing puzzle.
clears an existing puzzle.
rolls back all the changes you made.
finds values that are wrong and prohibited in fact.
would tell you what cell you should put an answer next.
solves a puzzle.
puts an answer to a cell the solver thinks best.
configures button/cell appearance (used internally).
does everything required when you push a button/cell (used internally).
quits an application.
Kenichi Ishigaki, <ishigaki at cpan.org>
Copyright (C) 2006 by Kenichi Ishigaki, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Games::Sudoku::Component::TkPlayer, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Games::Sudoku::Component::TkPlayer
CPAN shell
perl -MCPAN -e shell install Games::Sudoku::Component::TkPlayer
For more information on module installation, please visit the detailed CPAN module installation guide.