Skip to content

Instantly share code, notes, and snippets.

@havenwood
Created August 6, 2019 23:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save havenwood/2b290276bf89140fc938e703bf63e120 to your computer and use it in GitHub Desktop.
Save havenwood/2b290276bf89140fc938e703bf63e120 to your computer and use it in GitHub Desktop.
TEAM_WINS = %w[n t1 t2].freeze
def winning_team(c1, c2)
TEAM_WINS[c1 <=> c2]
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment