Created
April 25, 2012 12:43
-
-
Save BlaneCordes/2489486 to your computer and use it in GitHub Desktop.
leagueapp.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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