chess_loloof64 0.1.0 chess_loloof64: ^0.1.0 copied to clipboard
A fork of chess package, which is 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.
A Random Game
import "package:chess_loloof64/chess_loloof64.dart";
void main() {
Chess chess = new Chess();
while (!chess.game_over) {
print('position: ' + chess.fen);
print(chess.ascii);
var moves = chess.moves();
moves.shuffle();
var move = moves[0];
chess.move(move);
print('move: ' + move);
}
}