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.
$filename
game_of_day.pgn
Downloads the puzzle of the day. If $filename is not specified, then it downloads it to puzzle_of_day.pgn.
puzzle_of_day.pgn
game_of_day puzzle_of_day
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.
puzzle_of_day()
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:
scripts
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.
2 POD Errors
The following errors were encountered while parsing the POD:
Non-ASCII character seen before =encoding in '12. ...?'. Assuming CP1252
You forgot a '=back' before '=head1'
To install Chess::Games::DotCom, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Chess::Games::DotCom
CPAN shell
perl -MCPAN -e shell install Chess::Games::DotCom
For more information on module installation, please visit the detailed CPAN module installation guide.