Class: EukerDeck

Inherits:
Deck show all
Defined in:
lib/crystel.rb

Instance Attribute Summary

Attributes inherited from Deck

#groups, #position

Instance Method Summary collapse

Methods inherited from Deck

#card_at, #combine, #deal, #deal_in, #group_no, #index_of, #shuffle, #swap, #top

Constructor Details

#initializeEukerDeck

Returns a new instance of EukerDeck.



235
236
237
238
239
240
241
242
243
244
# File 'lib/crystel.rb', line 235

def initialize
  @position = []
  @groups = []
  ["c", "h", "s", "d"].each do |suit|
    [9, 10, "a", "j", "q", "k"].each do |card|
      @position.push("#{card}#{suit}")
    end
  end
  shuffle
end