Skip to content

Instantly share code, notes, and snippets.

@JeffCohen
Last active December 27, 2015 08:29
Show Gist options
  • Save JeffCohen/7296020 to your computer and use it in GitHub Desktop.
Save JeffCohen/7296020 to your computer and use it in GitHub Desktop.
Hockey Team
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