download_random_games: Downloads random chess games

Description Usage Arguments Details

Description

Downloads random chess games in PGN format from chessgames.com

Usage

1
download_random_games(number, destination)

Arguments

number

the number of games to download

destination

an empty directory in which to save the games

Details

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/"


pmckenz1/boardmakr documentation built on May 8, 2019, 8:39 a.m.