Last active
December 27, 2015 08:29
-
-
Save JeffCohen/7296020 to your computer and use it in GitHub Desktop.
Hockey Team
This file contains hidden or 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
class HockeyTeam | |
attr_accessor :wins, :reg_losses, :ot_losses | |
end | |
chicago = HockeyTeam.new | |
chicago.wins = 9 | |
chicago.reg_losses = 2 | |
chicago.ot_losses = 4 | |
# Teams receive 2 points for each win | |
# 0 points for each regulation loss | |
# 1 point for each overtime loss | |
# Display the number of standings points for Chicago. | |
# | |
# Your code goes here: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment