Last updated:
0 purchases
iratus game
iratus_game #
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.
Getting started #
Easily start a game in the console :
import 'package:iratus_game/iratus_game.dart';
void main() {
ConsoleView cv = ConsoleView();
cv.start();
}
copied to clipboard
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());
}
copied to clipboard
Additional information #
Iratus Official Website
iratus_game on pub.dev
Wikipedia's Article on FEN Format
Wikipedia's Article on PGN Format
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.