Class: TexasHoldem::HighCard

Inherits:
PlayerHand show all
Defined in:
lib/player_hand.rb

Instance Attribute Summary

Attributes inherited from PlayerHand

#cards

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from PlayerHand

#<=>, inherited, #initialize, #remaining_cards, #score

Constructor Details

This class inherits a constructor from TexasHoldem::PlayerHand

Class Method Details

.create(cards) ⇒ Object



204
205
206
# File 'lib/player_hand.rb', line 204

def self.create(cards)
  new(cards)
end

Instance Method Details

#base_scoreObject



212
213
214
# File 'lib/player_hand.rb', line 212

def base_score
  0
end

#nameObject



208
209
210
# File 'lib/player_hand.rb', line 208

def name
  'high card'
end

#relative_scoreObject



216
217
218
# File 'lib/player_hand.rb', line 216

def relative_score
  0
end