Description Usage Arguments Details
Downloads random chess games in PGN format from chessgames.com
1 | download_random_games(number, destination)
|
number |
the number of games to download |
destination |
an empty directory in which to save the games |
The destination specified should be an EMPTY DIRECTORY. The function counts the files in the directory to determine how many more random games to download.
For example, if you specify 100 random games and your directory already contains 50 files, then the function will stop after only 50 games.
The destination should end in a forward slash – for example, "data/"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.