Main > Programming > Libraries >

Chess::Game 0.6.0

Chess::Game 0.6.0

Sponsored Links

Chess::Game 0.6.0 Ranking & Summary

RankingClick at the star to rank
Ranking Level
User Review: 0 (0 times)
File size: 0.021 MB
Platform: Any Platform
License: Perl Artistic License
Price:
Downloads: 1049
Date added: 2006-12-28
Publisher: Brian Richardson

Chess::Game 0.6.0 description

Chess::Game is a class to record and validate the moves of a game of chess.

SYNOPSIS

use Chess::Game;

$game = Chess::Game->new();
$clone = $game->clone();
$move = $game->make_move("e2", "e4");
$move_c = $clone->make_move("e2", "e4");
$true = ($move->get_piece() ne $move_c->get_piece());
$move = $game->delete_move();
...
while (!defined($result = $game->result())) {
# get a move
$move = $game->make_move($sq1, $sq2);
if (!defined($move)) {
print $game->get_message();
}
}
if ($result == 1) {
print "White wins!n";
}
elsif ($result == 0) {
print "Draw!n"
}
else {
print "Black wins!n";
}

The Chess module provides a framework for writing chess programs with Perl. This class forms part of that framework, providing move validation for all moves recorded using the Chess::Game class. The Game contains a Chess::Board, 32 Chess::Pieces and a Chess::Game::MoveList that contains a series of Chess::Game::MoveListEntrys that record the exact state of the game as it progresses. Moves can be taken back one-at-a-time to allow for simple movelist manipulation.

Chess::Game 0.6.0 Screenshot

Advertisements

Chess::Game 0.6.0 Keywords

Bookmark Chess::Game 0.6.0

Hyperlink code:
Link for forum:

Chess::Game 0.6.0 Copyright

WareSeeker periodically updates pricing and software information of Chess::Game 0.6.0 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of Chess::Game 0.6.0 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed

Allok Video Splitter 2.2.0 Review:

Name (Required)
Email(Required)
Captcha
Featured Software

Want to place your software product here?
Please contact us for consideration.

Contact WareSeeker.com
Related Software
Chess::Game::MoveList is a specialized list class for recording the moves of a Chess::Game. Free Download
Deska project is a graphical representation of chess games from PGN files. Free Download
Chess::Elo is a Perl module to calculate Chess "Elo" ratings. Free Download
Chessweb is a J2EE chess game Website. Free Download
Dreamchess is a XBoard-compatible 3D chess interface and engine. Free Download
glChess is a chess game with 3D OpenGL graphics. Free Download
gnome-chess is chess game, a graphical user interface for playing chess. Free Download
ChessY! project allows you to visually review the game histories from Yahoo! online chess. Free Download