| KGS documentation | view source | Contained in the KGS distribution. |
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->{score}[COLOUR] stores the score (if available) for
the given colour, else undef.
$board->{timer}[COLOUR] stores the [$time, $count] remaining time
info for the given user, if known. undef otherwise.
$board->{last} stores the colour of the last move that was played.
$board->{board} stores a two-dimensional array with board contents.
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.
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.
| KGS documentation | view source | Contained in the KGS distribution. |