Class: AcpcPokerTypes::Player
- Inherits:
-
HandPlayer
- Object
- HandPlayer
- AcpcPokerTypes::Player
- Defined in:
- lib/acpc_poker_types/player.rb
Instance Attribute Summary collapse
-
#balance ⇒ Object
Returns the value of attribute balance.
-
#hand_player ⇒ Object
Returns the value of attribute hand_player.
-
#seat ⇒ Object
readonly
Returns the value of attribute seat.
Attributes inherited from HandPlayer
#actions, #ante, #hand, #initial_stack, #winnings
Instance Method Summary collapse
-
#initialize(seat) ⇒ Player
constructor
A new instance of Player.
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
#balance ⇒ Object
Returns the value of attribute balance.
32 33 34 |
# File 'lib/acpc_poker_types/player.rb', line 32 def balance @balance end |
#hand_player ⇒ Object
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 |
#seat ⇒ Object (readonly)
Returns the value of attribute seat.
31 32 33 |
# File 'lib/acpc_poker_types/player.rb', line 31 def seat @seat end |