class OfcpScoring::Straight
Public Instance Methods
<=>(other)
click to toggle source
Calls superclass method
OfcpScoring::RankedHand#<=>
# File lib/ofcp_scoring/straight.rb, line 3 def <=>(other) return super if super highest_straight_card <=> other.highest_straight_card end
highest_straight_card()
click to toggle source
# File lib/ofcp_scoring/straight.rb, line 8 def highest_straight_card return ranks.max unless ranks.include?(14) return 1 if ranks.include?(14) && ranks.include?(5) return 14 end