chess_lib 0.1.0+2 icon indicating copy to clipboard operation
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);
4
likes
120
pub points
2%
popularity

Publisher

verified publisher iconthkp.co

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

Repository (GitHub)

Documentation

API reference

License

Icon for licenses.Apache-2.0 (LICENSE)

More

Packages that depend on chess_lib