![]() * recorded game replay (current script pcheckers-replay-games) In the future one script pcheckers may be installed that will include: * automatic AI game play (current script pcheckers-auto-play) pdn.gz|xz|bz2 files (automatically uncompressed on the fly)Ĭurrently installed scripts: * pcheckers-auto-play pdn files (trying to detect a lot of broken notations too) ![]() ![]() Or even construct own rule variants, like: Give-Away International Checkers on the 8x10 board without the requirement to capture maximal amount of pieces.Ĭurrently supported game file formats: *. ![]() Note that every variant configures its own board size, but it is made possible to play using any variant rules on different board sizes too, for example Russian Checkers on 12x12 board. This package is intended to provide complete infrastructure for interactive and automatic playing and manipulating of Checkers games.Ĭurrently supported checkers/draughts variants (AI and game replay): * russianĬurrently supported board sizes: * 4x4, 6圆, 8x10 (just for fun) Replay of previously recorded games is supported too. A basic AI heuristics is implemented using the Minimax algorithm. 17 different national rule variants (and any custom mix of rules) are supported on any arbitrary board sizes. Games::Checkers is a set of Perl classes implementing the Checkers game play. Print "\n", ($color = White ? "Black" : "White"), " won.\n" ABSTRACT $color = ($color = White) ? Black : White Print $move->dump($board), "\n", $board->dump My $move = $board_tree->choose_best_move # or: choose_random_move ($board, $color, 2) # think 2 steps ahead ![]() My $board_tree = new Games::Checkers::BoardTree # Or the same on a lower level: # automatic computer-vus-computer play scriptĭie "Draw by rules\n" if $num_moves++ = 200 My $game = Games::Checkers::Game->new(level => 2) Games::Checkers - Play the Checkers games SYNOPSIS # automatic computer-vus-computer play script ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |