Class: Patience::Foundation
Overview
Patience::Area::Foundation is a class, which represents Foundation area of the game.
foundation = Area::Foundation.new
foundation.piles.size #=> 1
Instance Attribute Summary
Attributes inherited from Area
Instance Method Summary collapse
-
#initialize ⇒ Foundation
constructor
A new instance of Foundation.
Methods inherited from Area
#add_from, #cards, #draw_on, #hit?, #pos
Constructor Details
#initialize ⇒ Foundation
Returns a new instance of Foundation.
12 13 14 15 |
# File 'lib/patience/foundation.rb', line 12 def initialize super([], 4) self.pos = [356, 23] end |