Skip to content

ChreSyr/dart_iratus_game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages