Class: AcpcPokerTypes::Player

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

Instance Attribute Summary collapse

Attributes inherited from HandPlayer

#actions, #ante, #hand, #initial_stack, #winnings

Instance Method Summary collapse

Methods inherited from HandPlayer

#==, #all_in?, #all_in_allowed?, #append_action!, #contributions, #contributions_before, #folded?, #inactive?, #legal_actions, #round, #stack, #total_contribution, #wager_allowed_by_stack?

Constructor Details

#initialize(seat) ⇒ Player

Returns a new instance of Player.



34
35
36
37
38
39
40
# File 'lib/acpc_poker_types/player.rb', line 34

def initialize(seat)
  @seat = seat
  @balance = 0
  @hand_player = NilHandPlayer.new

  super @hand_player
end

Instance Attribute Details

#balanceObject

Returns the value of attribute balance.



32
33
34
# File 'lib/acpc_poker_types/player.rb', line 32

def balance
  @balance
end

#hand_playerObject

Returns the value of attribute hand_player.



31
32
33
# File 'lib/acpc_poker_types/player.rb', line 31

def hand_player
  @hand_player
end

#seatObject (readonly)

Returns the value of attribute seat.



31
32
33
# File 'lib/acpc_poker_types/player.rb', line 31

def seat
  @seat
end