chess_lib 0.1.0+2 copy "chess_lib: ^0.1.0+2" to clipboard
chess_lib: ^0.1.0+2 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);
3
likes
140
pub points
2%
popularity

Publisher

verified publisherthkp.co

Dart library for chess. Use this package for modelling a game of chess.

Repository (GitHub)
View/report issues

Documentation

API reference

License

Apache-2.0 (license)

More

Packages that depend on chess_lib