Class: RubyHoldem::Round::Player

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) ⇒ Player



6
7
8
9
10
# File 'lib/ruby_holdem/round/player.rb', line 6

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.



4
5
6
# File 'lib/ruby_holdem/round/player.rb', line 4

def current_bet_amount
  @current_bet_amount
end

#hole_cardsObject

Returns the value of attribute hole_cards.



4
5
6
# File 'lib/ruby_holdem/round/player.rb', line 4

def hole_cards
  @hole_cards
end