Games::SGFGames::SGF is a general SGF parser. | |
Download |
Games::SGF Ranking & Summary
Advertisement
- 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 Tags
Games::SGF Description
Games::SGF is a general SGF parser. Games::SGF is a general SGF parser.SYNOPSIS use Games::SGF; my $sgf = new Games::SGF(); $sgf->setStoneRead( sub { "something useful"} ); $sgf->setMoveRead( sub { "something useful"} ); $sgf->setPointRead( sub { "something useful"} ); $sgf->addTag('KM', $sgf->T_GAME_INFO, $sgf->V_REAL ); $sgf->readFile("015-01.sgf"); $sgf->setProperty( "AP", $sgf->compose("MyApp", "Version 1.0") );Games::SGF is a general Smart Game Format Parser. It parses the file, and checks the properties against the file format 4 standard. No game specific features are implemented, but can be added on in inheriting classes.It is designed so that the user can tell the parser how to handle new tags. It also allows the user to set callbacks to parse Stone, Point, and Move types. These are game specific types. Requirements: · Perl
Games::SGF Related Software