Search
Preparing search index...
The search index is not available
typedeck
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
Player
Class Player
Represents a Player
Hierarchy
Player
ComputerPlayer
Implements
IPlayer
Index
Constructors
constructor
Properties
id
name
score
Methods
get
Hand
get
Index
set
Hand
to
String
update
Score
Constructors
constructor
new
Player
(
name
?:
string
, hand
?:
IHand
, randomStringService
?:
IRandomStringService
)
:
Player
Parameters
Default value
name:
string
= ""
Default value
hand:
IHand
= new Hand()
Default value
randomStringService:
IRandomStringService
= new MathRandomStringService()
Returns
Player
Properties
id
id
:
string
name
name
:
string
score
score
:
number
= 0
Methods
get
Hand
get
Hand
(
)
:
IHand
Returns
IHand
get
Index
get
Index
(
)
:
string
Returns
string
set
Hand
set
Hand
(
hand
:
IHand
)
:
this
Parameters
hand:
IHand
Returns
this
to
String
to
String
(
)
:
string
Returns
string
update
Score
update
Score
(
score
:
number
)
:
this
Parameters
score:
number
Returns
this
Globals
Player
constructor
id
name
score
get
Hand
get
Index
set
Hand
to
String
update
Score
Generated using
TypeDoc
Represents a Player