Chess::Games::DotCom - API for accessing chessgames.com


Chess-Games-DotCom documentation  | view source Contained in the Chess-Games-DotCom distribution.

Index


NAME

Top

Chess::Games::DotCom - API for accessing chessgames.com

SYNOPSIS

Top

  shell> perl -MChess::Games::DotCom -e  game_of_day
  shell> perl -MChess::Games::DotCom -e 'game_of_day("myfile.pgn")'

  shell> perl -MChess::Games::DotCom -e  puzzle_of_day
  shell> perl -MChess::Games::DotCom -e 'puzzle_of_day("myfile.pgn")'

ABSTRACT

Top

Download games from chessgames.com.

A script in scripts suitable for invocation from cron is included.

API

Top

game_of_day [ $filename ]

Downloads the game of the day. If $filename is not specified, then it downloads it to game_of_day.pgn.

puzzle_of_day [ $filename ]

Downloads the puzzle of the day. If $filename is not specified, then it downloads it to puzzle_of_day.pgn.

EXPORT

game_of_day puzzle_of_day

NEW FEATURES

Top

in 0.09

Realized that I parsed out the wrong thing and parsed out something like:

   12. ...?

instead.

Stored this in plycount instead.

in 0.08

For puzzle_of_day(), parsed out "$color to move and win" and stored in the PlyCount header of PGN so that I could see where the puzzle began.

Too see an example of a log of auto-downloaded games, visit:

http://princepawn.perlmonk.org/chess/pgn/montreux.html

in 0.07

Added a sample cron file for daily automatic retrieval of puzzle of day.

Added Log::Agent logging to sample retrieval script

in 0.06

puzzle_of_day was added

TODO

Top

Download other daily game parts of the site

RESOURCES

Top

The Perl Chess Mailing List:

  http://www.yahoogroups.com/group/perl-chess

AUTHOR

Top

T. M. Brannon, <tbone@cpan.org>

INSTALLATION

Top

You must have the following installed:

1 URI
2 Bundle::LWP
3 HTML::Tree

Optional

For the script in the scripts directory, you also need:

4 File::Butler
5 File::Temp
6 Log::Agent

COPYRIGHT AND LICENSE

Top


Chess-Games-DotCom documentation  | view source Contained in the Chess-Games-DotCom distribution.