Class: Patience::Foundation

Inherits:
Area show all
Defined in:
lib/patience/foundation.rb

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

#piles

Instance Method Summary collapse

Methods inherited from Area

#add_from, #cards, #draw_on, #hit?, #pos

Constructor Details

#initializeFoundation

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