sgf_parser 0.0.3 copy "sgf_parser: ^0.0.3" to clipboard
sgf_parser: ^0.0.3 copied to clipboard

Parser library for SGF (Smart Game Format) files. Currently only supports Go.

SGF Parser #

Smart Game Format parser for Flutter & Dart. Currently only supports Go.

Supported Properties #

AP, BR, DT, EV, FF, GM, KM, PB, PC, PW, RE, SZ, TM, US, WR, W, B

Usage #

// Initialize the parser with the SGF contents
SGFParser parser = SGFParser(sgfString);
Game game = parser.parse();

// Attributes contain all non-move properties
GameAttributes attributes = game.attributes;

// Moves are listed in order
List<Move> moves = game.moves;

Please see here for a more concrete example.

## Todo

  • Support for rest of the properties
  • Variations
  • Handicap
0
likes
30
pub points
0%
popularity

Publisher

unverified uploader

Parser library for SGF (Smart Game Format) files. Currently only supports Go.

Homepage

License

unknown (LICENSE)

Dependencies

equatable, flutter

More

Packages that depend on sgf_parser