NAME

Games::SGF::GO - A Go Specific SGF Parser

VERSION

Version 0.01 Alpha Release

SYNOPSIS

use Games::SGF::Go;

my $sgf = new Games::SGF::Go;

$sgf->readFile('somegame.sgf');

# fetch Properties
my $komi = $sgf->property('KM');
my $handicap = $sgf->property('HA');

# move to next node
$sgf->next;

# get a move
my $move = $sgf->property('B');

# add it to a board

$board[ $move->[0] ][ $move->[1] ] = 'B';

DISCRIPTION

Games::SGF::Go Extends Games::SGF for the game specifics of Go. These include adding the tags 'TB', 'TW', 'HA', and 'KM'. It will also parse and check the stone, move, and point types.

The stone, move and point types will be returned as an array ref containing the position on the board.

You can set application specific tags using "setTag" in Games::SGF. All the callbacks to Games::SGF have been set and thus can't be reset.

All other methods from "METHODS" in Games::SGF can be used as you normally would.

METHODS

new

my $sgf = new Games::SGF::Go;

This will create the Games::SGF::Go object.

ALSO SEE

Games::SGF

http://www.red-bean.com/sgf

Games::Goban

Games::Go::SGF

AUTHOR

David Whitcomb, <whitcode at gmail.com>

BUGS

Please report any bugs or feature requests to bug-games-sgf at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Games-SGF. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.