Class: RubyHoldem::RoundPlayer

Inherits:
SimpleDelegator
  • Object
show all
Defined in:
lib/ruby_holdem/round_player.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_amountObject

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_cardsObject

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