NAME
Games::Sudoku::Component::Table::Permission
SYNOPSIS
use Games::Sudoku::Component::Table;
use Games::Sudoku::Component::Table::Permission;
my $table = Games::Sudoku::Component::Table->new(
perm => Games::Sudoku::Component::Table::Permission->new
);
DESCRIPTION
This module provides a permission table. Usually you don't have to care about this.
METHODS
new (hash or hashref)
Creates an object. As for options, see the base class Games::Sudoku::Component::Base. Size related options are required.
allow (row, column, value)
Allows the value for the cell(row, column).
deny (row, column, value)
Denies the value for the cell(row, column). Actually the value will be held as a temporary one.
allowed
Returns an array of allowed values.
is_allowed (row, column, integer)
Returns true if the value is allowed for the cell(row, column).
result
Mainly used internally. In the verbose mode, this returns a result code and a reason/description of the code; otherwise only the code will be returned.
clear
Clears all of the permission data.
verbose (bool)
If set true, result
method will be verbose.
SEE ALSO
- Games::Sudoku::Component,
- Games::Sudoku::Component::Base,
- Games::Sudoku::Component::Table,
- Games::Sudoku::Component::Table::Cell
AUTHOR
Kenichi Ishigaki, <ishigaki@cpan.org>
COPYRIGHT AND LICENSE
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.