Games::Sudoku::Component::Table::Item
use Games::Sudoku::Component::Table::Item; my $item = Games::Sudoku::Component::Table::Item->new( row => 2, col => 3, allowed => [2, 3, 4], ); my $next_candidate = $item->random_value;
This module is mainly used to bridge between ::Controller::History object and ::Table (and ::Table::Cell) object. Maybe you don't need to touch this explicitly.
Creates an object. Below options are mandatory:
Row/column id of the item (cell), respectively.
Arrayref of allowed values for the item (cell).
Below is optional:
Initial value.
Returns a row/column id of the item (cell), respectively.
Returns a value of the item (cell).
Returns an array of allowed values of the item (cell).
Returns one of the allowed values of the item (cell). The value is pulled out of the array of allowed values.
Returns a dump string of the item (cell), maybe just for debugging.
Kenichi Ishigaki, <ishigaki@cpan.org>
Copyright (C) 2006 by Kenichi Ishigaki
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Games::Sudoku::Component, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Games::Sudoku::Component
CPAN shell
perl -MCPAN -e shell install Games::Sudoku::Component
For more information on module installation, please visit the detailed CPAN module installation guide.