Sha256: 178632ba5447e6697e7e8a778e67ff177c2e8770c50be432e07410a9165e794d
Contents?: true
Size: 430 Bytes
Versions: 83
Compression:
Stored size: 430 Bytes
Contents
class KlondikeSolitaire 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
83 entries across 83 versions & 1 rubygems