Team: Team: class to hold the names, ranks and list of players

Description Usage: Arguments: Examples

Description

Reference class to create objects that represent teams.

Usage:

Team(name, rank, players)

Arguments:

name

name the team for display purposes

rank

rank of team in the match outcome

players

a list of players belonging to this team

Examples

1
2
3
4
  Alice <- Player("Alice", Gaussian(25, 8))
  Bob <- Player("Bob", Gaussian(30, 7))
  players <- list(Alice, Bob)
  Team1 <- Team("Team1", rank = 1, players)

bhoung/trueskill-in-r documentation built on May 12, 2019, 8:29 p.m.