Class: RubyHoldem::RoundPlayer
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- RubyHoldem::RoundPlayer
- Defined in:
- lib/ruby_holdem/round_player.rb
Instance Attribute Summary collapse
-
#current_bet_amount ⇒ Object
Returns the value of attribute current_bet_amount.
-
#hole_cards ⇒ Object
Returns the value of attribute hole_cards.
Instance Method Summary collapse
-
#initialize(player) ⇒ RoundPlayer
constructor
A new instance of RoundPlayer.
Constructor Details
#initialize(player) ⇒ RoundPlayer
Returns a new instance of RoundPlayer.
5 6 7 8 9 |
# File 'lib/ruby_holdem/round_player.rb', line 5 def initialize(player) @hole_cards = [] @current_bet_amount = 0 super(player) end |
Instance Attribute Details
#current_bet_amount ⇒ Object
Returns the value of attribute current_bet_amount.
3 4 5 |
# File 'lib/ruby_holdem/round_player.rb', line 3 def current_bet_amount @current_bet_amount end |
#hole_cards ⇒ Object
Returns the value of attribute hole_cards.
3 4 5 |
# File 'lib/ruby_holdem/round_player.rb', line 3 def hole_cards @hole_cards end |