Class: Patience::Waste

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

Overview

Patience::Area::Waste is a class, which represents Waste area of the game. By now, it’s backed up only with methods from the Area class.

waste = Area::Waste.new
waste.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, #pos=

Constructor Details

#initializeWaste

Returns a new instance of Waste.



12
13
14
15
16
# File 'lib/patience/waste.rb', line 12

def initialize
  super([], 1)
  self.pos = [141, 27]
  self.piles[0].background = Ray::Sprite.new # Emptiness.
end