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

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")'

Download games from chessgames.com.
A script in scripts suitable for invocation from cron is included.

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

Realized that I parsed out the wrong thing and parsed out something like:
12. ...?
instead.
Stored this in plycount instead.
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
Added a sample cron file for daily automatic retrieval of puzzle of day.
Added Log::Agent logging to sample retrieval script
puzzle_of_day was added

Download other daily game parts of the site

The Perl Chess Mailing List:
http://www.yahoogroups.com/group/perl-chess

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

You must have the following installed:
For the script in the scripts directory, you also need:

Copyright 2003 by T. M. Brannon
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.