Skip to content

Instantly share code, notes, and snippets.

@pmichaeljones
Created April 18, 2014 20:58
Show Gist options
  • Save pmichaeljones/11064126 to your computer and use it in GitHub Desktop.
Save pmichaeljones/11064126 to your computer and use it in GitHub Desktop.
module Hand
attr_accessor :score, :hand
@hand = []
@score = 0
def add_card(card)
@hand << card
end
end
###-----END MODULES---------###
class Player
attr_accessor :name
include Scoring
include Hand
def initialize(name)
@name = name
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment