Skip to contents

Ensures player ELO stays within defined bounds to prevent extreme drift. Uses THREE_WAY_PLAYER_ELO_MIN and THREE_WAY_PLAYER_ELO_MAX constants.

Usage

bound_player_elo(elo)

Arguments

elo

Numeric. Current or updated ELO rating.

Value

Numeric. Bounded ELO rating.

Examples

bound_player_elo(1500)
#> [1] 1500
bound_player_elo(2000)  # Capped to max
#> [1] 1800
bound_player_elo(800)   # Raised to min
#> [1] 1000