chess_lib 0.1.0+1 chess_lib: ^0.1.0+1 copied to clipboard
Dart library for chess. Use this package for modelling a game of chess.
chess_lib #
The chess_lib
package for Dart allows you to model chess games. All the rules of chess are modelled as well as parsing forsyth edwards notation and also algebraic notation for moves.
Getting Started #
To import
import 'package:chess_lib/chess_lib.dart';
And here is a simple usage:
ChessGameState state = ChessGameState.initialBoardPosition();
state = state.playMove(state.moves[0]);
state = state.playMove(state.moves[0]);
state = state.playMove(state.moves[0]);
print(state.forsythEdwardsNotation);