Class: AcpcPokerTypes::NilHandPlayer
Instance Attribute Summary
Attributes inherited from HandPlayer
#actions, #ante, #hand, #initial_stack, #winnings
Instance Method Summary
collapse
Methods inherited from HandPlayer
#==, #all_in_allowed?, #append_action!, #balance, #contributions_before, #round, #wager_allowed_by_stack?
Constructor Details
Returns a new instance of NilHandPlayer.
10
11
12
13
14
15
16
|
# File 'lib/acpc_poker_types/player.rb', line 10
def initialize()
@hand = Hand.new
@initial_stack = 0
@ante = 0
@winnings = ChipStack.new 0
@actions = [[]]
end
|
Instance Method Details
#all_in? ⇒ Boolean
26
|
# File 'lib/acpc_poker_types/player.rb', line 26
def all_in?() false end
|
#contributions ⇒ Object
18
|
# File 'lib/acpc_poker_types/player.rb', line 18
def contributions() [] end
|
#folded? ⇒ Boolean
27
|
# File 'lib/acpc_poker_types/player.rb', line 27
def folded?() false end
|
#inactive? ⇒ Boolean
25
|
# File 'lib/acpc_poker_types/player.rb', line 25
def inactive?() false end
|
#legal_actions(round: 0, amount_to_call: ChipStack.new(0), wager_illegal: false) ⇒ Object
20
21
22
23
24
|
# File 'lib/acpc_poker_types/player.rb', line 20
def legal_actions(
round: 0,
amount_to_call: ChipStack.new(0),
wager_illegal: false
) [] end
|
#stack ⇒ Object
17
|
# File 'lib/acpc_poker_types/player.rb', line 17
def stack() 0 end
|
#total_contribution ⇒ Object
19
|
# File 'lib/acpc_poker_types/player.rb', line 19
def total_contribution() 0 end
|