KGS::Game::BoardRepresents a go board | |
Download |
KGS::Game::Board Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Marc Lehmann
- Publisher web site:
- http://www.goof.com/pcg/marc/
KGS::Game::Board Tags
KGS::Game::Board Description
Represents a go board KGS::Game::Board is a Perl module that represents a go board.SYNOPSIS use KGS::Game::Board;METHODSmy $board = new $size Creates a new empty board of the given size. $board->{captures} stores the number of captured stones for the given colour. $board->{score} stores the score (if available) for the given colour, else undef. $board->{timer} stores the 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) Returns true if the move of the given colour on the given coordinates is valid or not. Requirements: · Perl
KGS::Game::Board Related Software