Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Game

Hierarchy

  • Game

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

randomLog

randomLog: number[] = ...

Methods

play

  • play(): boolean
  • Returns boolean

    Whether Team A wins

playRound

  • playRound(): boolean | void
  • Returns boolean | void

    Whether Team A wins

Private Static playRoundGivenTeamOrder

  • playRoundGivenTeamOrder(first: Team, second: Team): undefined | "first" | "second"
  • Parameters

    Returns undefined | "first" | "second"

    The winner, if any