NAME
Meta::Chess::Game - data structure that represents a chess game.
COPYRIGHT
Copyright (C) 2001, 2002 Mark Veltzer; All rights reserved.
LICENSE
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA.
DETAILS
MANIFEST: Game.pm
PROJECT: meta
VERSION: 0.27
SYNOPSIS
package foo;
use Meta::Chess::Game qw();
my($game)=Meta::Chess::Game->new();
$game->set_white("kasparov");
$game->set_black("karpov");
$game->set_date("1.1.70");
$game->push($my_move);
$game->pgn_write(FILE);
DESCRIPTION
This is a library to create chess game objects. The chess game object store board positions for every move using the board object and those are chached (calculated on demand and remmembered...). The object can read and store itself from a pgn file.
FUNCTIONS
new($)
set_white($$)
get_white($)
set_black($$)
get_black($)
set_date($$)
get_date($)
set_site($$)
get_site($)
set_event($$)
get_event($)
set_round($$)
get_round($)
set_result($$)
get_result($)
set_timecontrol($$)
get_timecontrol($)
set_extra($$)
get_extra($)
set_whiteelo($$)
get_whiteelo($)
set_blackelo($$)
get_blackelo($)
pgn_write($$)
pgn_read($$)
TEST($)
FUNCTION DOCUMENTATION
- new($)
-
Gives you a new Game object.
- set_white($$)
-
This will set the white side for the game.
- get_white($)
-
This will give you the name of the white player.
- set_black($$)
-
This will set the black side for the game.
- get_black($)
-
This will give you the name of the black player.
- set_date($$)
-
This will set the date for the game.
- get_date($)
-
This will give you the date of the game.
- set_site($$)
-
This will set the site for the game.
- get_site($)
-
This will give you the site of the game.
- set_event($$)
-
This will set the event for the game.
- get_event($)
-
This will give you the event of the game.
- set_round($$)
-
This will set the round for the game.
- get_round($)
-
This will give you the round of the game.
- set_result($$)
-
This will set the result for the game.
- get_result($)
-
This will give you the result of the game.
- set_timecontrol($$)
-
This will set the timecontrol for the game.
- get_timecontrol($)
-
This will give you the timecontrol of the game.
- set_extra($$)
-
This will set the extra for the game.
- get_extra($)
-
This will give you the extra of the game.
- set_whiteelo($$)
-
This will set the whiteelo for the game.
- get_whiteelo($)
-
This will give you the whiteelo of the game.
- set_blackelo($$)
-
This will set the blackelo for the game.
- get_blackelo($)
-
This will give you the blackelo of the game.
- pgn_write($$)
-
This will write the file game to a pgn file for you.
- pgn_read($$)
-
This will read a pgn file into the current object.
- TEST($)
-
Test suite for this module.
SUPER CLASSES
Meta::Ds::Array(3)
BUGS
None.
AUTHOR
Name: Mark Veltzer
Email: mailto:veltzer@cpan.org
WWW: http://www.veltzer.org
CPAN id: VELTZER
HISTORY
0.00 MV initial code brought in
0.01 MV bring databases on line
0.02 MV Another change
0.03 MV make quality checks on perl code
0.04 MV more perl checks
0.05 MV check that all uses have qw
0.06 MV fix todo items look in pod documentation
0.07 MV perl code quality
0.08 MV more perl quality
0.09 MV chess and code quality
0.10 MV more perl quality
0.11 MV perl documentation
0.12 MV more perl quality
0.13 MV perl qulity code
0.14 MV more perl code quality
0.15 MV revision change
0.16 MV languages.pl test online
0.17 MV perl packaging
0.18 MV PDMT
0.19 MV md5 project
0.20 MV database
0.21 MV perl module versions in files
0.22 MV movies and small fixes
0.23 MV thumbnail user interface
0.24 MV more thumbnail issues
0.25 MV website construction
0.26 MV web site automation
0.27 MV SEE ALSO section fix
SEE ALSO
Meta::Ds::Array(3), strict(3)
TODO
Nothing.