class Brigitte::Deck
A Deck
generates and shuffles all cards except Joker. Joker is not used in Brigitte
Constants
- PREFIX
- SIGNS
Attributes
cards[RW]
Public Class Methods
new()
click to toggle source
# File lib/brigitte/deck.rb, line 13 def initialize @cards = PREFIX.map do |prefix| SIGNS.map { |sign| Card.new(prefix, sign) } end.flatten.shuffle end