lichess_leaderboard: Get top players on Lichess leaderboards

View source: R/leaderboards.R

lichess_leaderboardR Documentation

Get top players on Lichess leaderboards

Description

This function takes in two parameters; how many players you want returned (max 200) and the speed variant. The result is a data frame for each game type

Usage

lichess_leaderboard(top_n_players, speed_variant)

Arguments

top_n_players

The number of players (up to 200) you want returned

speed_variant

A valid lichess speed variant to return the leaderboard for

Details

The leaderboard speed variant options include:

"ultraBullet", "bullet", "blitz", "rapid", "classical", "chess960", "crazyhouse", "antichess" , "atomic", "horde", "kingOfTheHill", "racingKings", "threeCheck"

Value

a dataframe of the lichess top players based on speed_variant and top_n_players selected

Examples

## Not run: 
top10_blitz <- lichess_leaderboard(top_n_players = 10, speed_variant = "blitz")
leaderboards <- purrr::map2_df(top_n_players = 10, c("ultraBullet", "bullet"), lichess_leaderboard)

## End(Not run)


chessR documentation built on Oct. 5, 2022, 1:07 a.m.