iratus_game is a package designed to play the Iratus chess variant.
It includes all the features necessary for classic chess such as FEN and PGN notations.
Easily start a game in the console :
import 'package:iratus_game/iratus_game.dart';
void main() {
ConsoleView cv = ConsoleView();
cv.start();
}
Or create a randomized game :
void main() {
IratusGame game = IratusGame();
while (game.result == 0) {
var moves = game.board.validNotations.toList();
moves.shuffle();
var move = moves[0];
game.move(move);
print('Played: $move');
}
ConsoleView.printBoard(game.board);
print(game.getPGN());
}