sgf_parser 0.0.3 sgf_parser: ^0.0.3 copied to clipboard
Parser library for SGF (Smart Game Format) files. Currently only supports Go.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add sgf_parser
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
sgf_parser: ^0.0.3
Alternatively, your editor might support flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:sgf_parser/exceptions/gameTypeNotSupportedException.dart';
import 'package:sgf_parser/exceptions/invalidMoveException.dart';
import 'package:sgf_parser/exceptions/invalidPropertyValueException.dart';
import 'package:sgf_parser/game/color.dart';
import 'package:sgf_parser/game/game.dart';
import 'package:sgf_parser/game/gameAttributes.dart';
import 'package:sgf_parser/game/move.dart';
import 'package:sgf_parser/game/player.dart';
import 'package:sgf_parser/properties/boardSize.dart';
import 'package:sgf_parser/properties/fileFormat.dart';
import 'package:sgf_parser/properties/gameType.dart';
import 'package:sgf_parser/sgfParser.dart';