Sha256: f6818e5bcc2f895c71fe55a2084e449cf6bb0be5d969fcc907948cc6c7402496
Contents?: true
Size: 437 Bytes
Versions: 2
Compression:
Stored size: 437 Bytes
Contents
class GlimmerKlondikeSolitaire module Model class DealtPile def initialize(game) @game = game end def reset! playing_cards.clear end def push!(playing_card) playing_cards.push(playing_card) end def remove!(card) playing_cards.delete(card) end def playing_cards @playing_cards ||= [] end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
glimmer_klondike_solitaire-1.1.0 | app/glimmer_klondike_solitaire/model/dealt_pile.rb |
glimmer_klondike_solitaire-1.0.1 | app/glimmer_klondike_solitaire/model/dealt_pile.rb |