Search
Preparing search index...
The search index is not available
typedeck
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
ComputerPlayer
Class ComputerPlayer
Hierarchy
Player
ComputerPlayer
Implements
IPlayer
Index
Constructors
constructor
Properties
difficulty
id
name
score
Methods
get
Hand
get
Index
set
Difficulty
set
Hand
to
String
update
Score
Create
Constructors
constructor
new
Computer
Player
(
name
?:
string
, hand
?:
IHand
, difficulty
?:
Difficulty
)
:
ComputerPlayer
Parameters
Default value
name:
string
= ""
Default value
hand:
IHand
= new Hand()
Default value
difficulty:
Difficulty
= Difficulty.Normal
Returns
ComputerPlayer
Properties
difficulty
difficulty
:
Difficulty
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
Difficulty
set
Difficulty
(
difficulty
:
Difficulty
)
:
this
Parameters
difficulty:
Difficulty
Returns
this
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
Static
Create
Create
(
fields
?:
ComputerPlayer
)
:
ComputerPlayer
Parameters
Optional
fields:
ComputerPlayer
Returns
ComputerPlayer
Globals
Computer
Player
constructor
difficulty
id
name
score
get
Hand
get
Index
set
Difficulty
set
Hand
to
String
update
Score
Create
Generated using
TypeDoc