Last data update: 2014.03.03

R: Player: class to hold the rank, skill and names of players
PlayerR Documentation

Player: class to hold the rank, skill and names of players

Description

Reference class to create objects that represent players.

Usage:

Player(rank, skill, name)

Arguments:

rank

rank of player in the match outcome

skill

skill of player represented by Gaussian object e.g. Gaussian(mu = 25, sigma = 25/3)

name

name the player for display purposes

Examples

  Alice <- Player(1, Gaussian(25, 8), "Alice")
  Bob <- Player(2, Gaussian(30, 7), "Bob")
  players <- list(Alice, Bob)
  PrintList(players)

Results