Class: AcpcPokerTypes::NilHandPlayer

Inherits:
HandPlayer show all
Defined in:
lib/acpc_poker_types/player.rb

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

#initializeNilHandPlayer

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

Returns:

  • (Boolean)


26
# File 'lib/acpc_poker_types/player.rb', line 26

def all_in?() false end

#contributionsObject



18
# File 'lib/acpc_poker_types/player.rb', line 18

def contributions() [] end

#folded?Boolean

Returns:

  • (Boolean)


27
# File 'lib/acpc_poker_types/player.rb', line 27

def folded?() false end

#inactive?Boolean

Returns:

  • (Boolean)


25
# File 'lib/acpc_poker_types/player.rb', line 25

def inactive?() false end


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

#stackObject



17
# File 'lib/acpc_poker_types/player.rb', line 17

def stack() 0 end

#total_contributionObject



19
# File 'lib/acpc_poker_types/player.rb', line 19

def total_contribution() 0 end