Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 976 Categories, Downloaded 34.383.987 Times

Chess::Game 0.6.0

  Date Added: November 12, 2010  |  Visits: 1.101

Chess::Game

Report Broken Link
Printer Friendly Version


Product Homepage
Download (103 downloads)



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..

Requirements: No special requirements
Platforms: Linux
Keyword: Chessgame Class Game Libraries Moves Programming Record Result Validate
Users rating: 0/10

License: Freeware Size: 21.5 KB
USER REVIEWS
More Reviews or Write Review


CHESS::GAME RELATED
Database Tools  -  QueryPrint 1.0
QueryPrint class allows you to print the result of a database query as an HTML table. A separate module defines the printing. It also allows the result to be displayed on multiple pages.
10 KB  
Arcade Style Games  -  jtronic 1.0beta1
JTronic is a game designed for programming competitions. Players program a Java agent that participates in a game that combines the classic Tron and PacMan games. Features include an AWT GUI, record/playback functionality, and tournament mode.
1.01 MB  
Arcade Style Games  -  ClearMoveU 2.45
This ClearMoveU game has appeared as a result of development of the popular ClearMove game. The rules of the game differ unsignificantly. The main difference that the game can proceed as long as you like. All depends on your art. We have take into...
4.53 KB  
Games  -  30" Dub Spinners Escape Police Chase Smash - Multiplayer Online Edition 1.0
ESCAPE POLICE CHASE SMASH Can you Escape the Police!? Crazy Gangstar Rides with fast turbo power and hairblowin airtime!.. You are getting chased by the police helicoptor, while you are racing the time! This world class game is...
36.4 MB  
Games  -  Caveman Wars 1.0.0
Protect your hut against a tribe of enemies and ferocious creatures in this strategic tower defense game with cards. As a result of an unknown cataclysm, food is becoming more and more scarce. Your tribe is being assaulted by endless waves...
42.3 MB  
Games  -  Chinese Checkers FVD 1.0
It is a game that moves all of the 15 horses to the top part of the same color on the side confronted. There is no distinction between king piece and piece. Moreover, the previous state of the flight does not have the limitation either. It...
6.5 MB  
Games  -  Chinese Checkers FVN 1.0
It is a game that moves all of the 15 horses to the top part of the same color on the side confronted. There is no distinction between king piece and piece. Moreover, the previous state of the flight does not have the limitation either. It...
6.6 MB  
Games  -  Equilibrium Balance Feat of Death : The tightrope sky walker above the City - Free Edition 2.0
TRY OUR EQUILIBRIUM BALANCE FEAT OF DEATH: THE TIGHTROPE SKY WALKER ABOVE THE CITY GAME Do you love to balance things? If yes, than the game is made only for you. Equilibrium Balance Feat of Death it is a game that moves in slow...
13.3 MB  
Libraries  -  Volity::Game 0.6.5
Volity::Game is a base class for Volity game modules. SYNOPSIS See Volity::Game::TicTacToe and its source code for a simple but full-featured example. This class provides a framework for writing Volity game modules in Perl. A Volity game...
102.4 KB  
Programming  -  The Qu Programming Language 1.21.10
Qu is a powerful full-featured object oriented programming language. It is an Open Source software. The Qu Programming Language is absolutely free (as in free lunch) and distributed under the GNU General Public License (GPL). Qu is inspired by...
1.3 MB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  Math::GMPf 0.29
Math::GMPf - perl interface to the GMP library's floating point (mpf) functions.
30.72 KB  
Programming  -  Net::Wire10 1.08
Net::Wire10 is a Pure Perl connector that talks to Sphinx, MySQL and Drizzle servers. Net::Wire10 implements the low-level network protocol, alias the MySQL wire protocol version 10, necessary for talking to one of the aforementioned...
30.72 KB  
Programming  -  logilab-common 0.56.2
a bunch of modules providing low level functionnalities shared among some python projects devel Please note that some of the modules have some extra dependencies. For instance, logilab.common.db will require a db-api 2.0 compliant...
174.08 KB  
Programming  -  OpenSSL for linux 1.0.0a
The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a...
3.83 MB  
Libraries  -  wolfSSL 4.0.0
The wolfSSL embedded SSL/TLS library is a lightweight SSL library written in ANSI standard C and targeted for embedded and RTOS environments - primarily because of its small size, speed, and feature set. It is commonly used in standard operating...
3.88 MB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB