MatchResult

com.phasmidsoftware.gambit.game.MatchResult
case class MatchResult[Pl](results: Seq[GameResult[Pl]])

A MatchResult aggregates GameResults over a series of games. Provides win/loss/draw counts and total games for a given player.

Type parameters

Pl

the player identity type.

Value parameters

results

the sequence of individual game results.

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def drawsFor(pl: Pl): Int

Number of draws for pl (score == 0).

Number of draws for pl (score == 0).

Attributes

def lossesFor(pl: Pl): Int

Number of games lost by pl (score == -1).

Number of games lost by pl (score == -1).

Attributes

def summary(p1: Pl, p2: Pl): String

Summary string for a two-player game between p1 and p2.

Summary string for a two-player game between p1 and p2.

Attributes

def total: Int

Total games played.

Total games played.

Attributes

def winsFor(pl: Pl): Int

Number of games won by pl (score == +1).

Number of games won by pl (score == +1).

Attributes

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product