NAME
KGS::Game::Board - represents a go board
SYNOPSIS
use KGS::Game::Board;
DESCRIPTION
Please supply a description )
METHODS
- my $board = new $size
-
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, elseundef
.$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. - $board->interpret_path ($path)
-
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. - $board->is_valid_move ($colour, $x, $y[, $may_suicide])
-
Returns true if the move of the given colour on the given coordinates is valid or not.
AUTHOR
Marc Lehmann <pcg@goof.com>