chess 0.0.1 chess: ^0.0.1 copied to clipboard
A port of chess.js to Dart. chess.dart is a library for legal chess move generation, maintenance of chess game state, and conversion to and from the formats FEN and PGN. It has no external dependencies.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add chess
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
chess: ^0.0.1
Alternatively, your editor might support dart pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:chess/chess.dart';