/Users/cpanrun/depot/main/contrib-patched/perl/CPAN/src/Games-Sudoku-Component/blib/lib/Games/Sudoku/Component/Table/Permission.pm


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 the Games::Sudoku::Component::Base manpage. 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

the Games::Sudoku::Component manpage,
the Games::Sudoku::Component::Base manpage,
the Games::Sudoku::Component::Table manpage,
the Games::Sudoku::Component::Table::Cell manpage


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.

 /Users/cpanrun/depot/main/contrib-patched/perl/CPAN/src/Games-Sudoku-Component/blib/lib/Games/Sudoku/Component/Table/Permission.pm