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 29.548.880 Times

Chess::Game 0.6.0

  Date Added: November 12, 2010  |  Visits: 876

Chess::Game

Report Broken Link
Printer Friendly Version


Product Homepage
Download (89 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  -  RGrid for Scripts 1.0
This is a datagrid class which can show the MySQL result set which you pass to it as a paged list. It can be completely styled using CSS.Features:- Tailored to MySQL- Allows any HTML in the columns (eg. Pictures)- Easily changes look and feel by...
102.4 KB  
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  
Games  -  2048 Game - The addictive puzzle app 1.1
Play the most addictive game of the moment and compete with your friends in Game Center. Share your best result with your friends in any social network. 2048: HOW TO PLAY? The objective of the game is to get the number 2048...
4.1 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  -  Egypt Roulette HD 1.1
The Egypt Roulette The turntable class game three colors of the four base Egypt symbols combined into 12 bet. Bet time, players need to bet in a circular symbol, also need to select one of three colors. Each symbols has a different...
8.2 MB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  FLEX-db Digital Asset Manager 3.0.9
FLEX-db - an enterprise Digital Asset Manager (DAM). It ingests and links metadata with files, creates thumbnails, and processes files using business rules. FLEX-db has a JSP client, Java app server for file input and output and an EJB metadata...
21.57 MB  
Programming  -  Libicom 0.9.0
The libicom library is a character based dynamicly linked library for Linux. It is used to remotely control the Icom IC-R8500 wide band receiver via an RS232 link. All call and return parameters to the control functions are character string based....
20.48 KB  
Programming  -  dotdesktop 0.3
Dotdesktop library provides ability to parse desktop entry file and access the information in a convenient way. Desktop entry file format is defined by freedesktop.org, it is used to describe information about an application such as the name and...
327.68 KB  
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  -  libyasl 0.2
Libyasl is a C++ class library to easily realize TCP/UDP/Multicast clientsand servers in IPv4 and IPv6 environments under GNU/Linux systems.
143.36 KB  
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  
Libraries  -  App::SimpleScan::Substitution::Line 2.02
App::SimpleScan::Substitution::Line is a line with optional fixed variable values. SYNOPSIS my $line = App::SimpleScan::Substitution::Line->new(" this "); # Use only this value when substituting " ". $line->fix(substituite =>...
54.27 KB