Skip to content

Instantly share code, notes, and snippets.

@BlaneCordes
Created April 25, 2012 12:43
Show Gist options
  • Save BlaneCordes/2489486 to your computer and use it in GitHub Desktop.
Save BlaneCordes/2489486 to your computer and use it in GitHub Desktop.
leagueapp.rb
#loop through games by team_id
z = Game.find_by_team_id(team_id)
#For each game:
#determine home wins if home_score is greater than away_score
#determine home losses if home_score is less than away_score
#determine away wins if away_score is greater than home_score
#determine away losses if away_score is less than home_score
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment