class EulerPoker::Round

Public Class Methods

new(round) click to toggle source
# File lib/euler_poker/round.rb, line 3
def initialize(round)
  @first, @second = HandFactory.round(round)
end

Public Instance Methods

winner() click to toggle source
# File lib/euler_poker/round.rb, line 7
def winner
  if @first > @second
    :first
  elsif @first < @second
    :second
  else
    :tie
  end
end