Search
Preparing search index...
The search index is not available
@mehra/pokemon
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
@mehra/pokemon
Game
Class Game
Hierarchy
Game
Index
Constructors
constructor
Properties
random
Log
Methods
play
play
Round
play
Round
Given
Team
Order
Constructors
constructor
new
Game
(
teamA
:
Team
, teamB
:
Team
, random
:
(
)
=>
number
, logger
?:
Partial
<
GameLogger
>
)
:
Game
Parameters
teamA:
Team
teamB:
Team
random:
(
)
=>
number
(
)
:
number
Returns
number
Optional
logger:
Partial
<
GameLogger
>
Returns
Game
Properties
random
Log
random
Log
:
number
[]
= ...
Methods
play
play
(
)
:
boolean
Returns
boolean
Whether Team A wins
play
Round
play
Round
(
)
:
boolean
|
void
Returns
boolean
|
void
Whether Team A wins
Private
Static
play
Round
Given
Team
Order
play
Round
Given
Team
Order
(
first
:
Team
, second
:
Team
)
:
undefined
|
"first"
|
"second"
Parameters
first:
Team
second:
Team
Returns
undefined
|
"first"
|
"second"
The winner, if any
Exports
Descriptive
Logger
Game
constructor
random
Log
play
play
Round
play
Round
Given
Team
Order
Player
Team
Game
Logger
Log
Player
Logger
Team
Logger