Games::SGF::Go

A Go Specific SGF Parser
Download

Games::SGF::Go Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • David Whitcomb
  • Publisher web site:
  • http://search.cpan.org/~whitcode/Games-SGF-0.07/lib/Games/SGF.pm

Games::SGF::Go Tags


Games::SGF::Go Description

A Go Specific SGF Parser Games::SGF::Go is a Go specific SGF parser.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 ] ] = 'B';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. Requirements: · Perl


Games::SGF::Go Related Software