class OfcpScoring::ChinesePokerHand
Public Class Methods
new(hand)
click to toggle source
# File lib/ofcp_scoring/chinese_poker_hand.rb, line 2 def initialize(hand) @hand = hand end
Public Instance Methods
back()
click to toggle source
# File lib/ofcp_scoring/chinese_poker_hand.rb, line 14 def back @hand[:back] end
front()
click to toggle source
# File lib/ofcp_scoring/chinese_poker_hand.rb, line 6 def front @hand[:front] end
middle()
click to toggle source
# File lib/ofcp_scoring/chinese_poker_hand.rb, line 10 def middle @hand[:middle] end
misset?()
click to toggle source
# File lib/ofcp_scoring/chinese_poker_hand.rb, line 18 def misset? true if front > middle || middle > back || front > back end