iratus_game 1.1.1 copy "iratus_game: ^1.1.1" to clipboard
iratus_game: ^1.1.1 copied to clipboard

The logic of an 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();
}

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());
}

Additional information #

3
likes
125
points
45
downloads

Publisher

verified publisheriratus.fr

Weekly Downloads

The logic of an Iratus game.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

More

Packages that depend on iratus_game