Class: EukerDeck
Instance Attribute Summary
Attributes inherited from Deck
Instance Method Summary collapse
-
#initialize ⇒ EukerDeck
constructor
A new instance of EukerDeck.
Methods inherited from Deck
#card_at, #combine, #deal, #deal_in, #group_no, #index_of, #shuffle, #swap, #top
Constructor Details
#initialize ⇒ EukerDeck
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 |