KGS::Game::Board - represents a go board
use KGS::Game::Board;
Please supply a description )
Creates a new empty board of the given size.
$board->{captures}[COLOUR] stores the number of captured stones for the given colour.
$board->{captures}[COLOUR]
$board->{score}[COLOUR] stores the score (if available) for the given colour, else undef.
$board->{score}[COLOUR]
undef
$board->{timer}[COLOUR] stores the [$time, $count] remaining time info for the given user, if known. undef otherwise.
$board->{timer}[COLOUR]
[$time, $count]
$board->{last} stores the colour of the last move that was played.
$board->{last}
$board->{board} stores a two-dimensional array with board contents.
$board->{board}
Interprets the path (as returned by KGS::Game::Tree::get_path) and leaves the board in the state that it reaches after executing all the pth nodes.
KGS::Game::Tree::get_path
Returns true if the move of the given colour on the given coordinates is valid or not.
Marc Lehmann <pcg@goof.com>
KGS::Protocol, KGS::Game::Tree, Gtk2::GoBoard.
To install KGS::SGF, copy and paste the appropriate command in to your terminal.
cpanm
cpanm KGS::SGF
CPAN shell
perl -MCPAN -e shell install KGS::SGF
For more information on module installation, please visit the detailed CPAN module installation guide.