This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Original module with "magic numbers" for 4 suits and 13 card values | |
# See: http://refactoring.com/catalog/replaceMagicNumberWithSymbolicConstant.html | |
module PlayingCards | |
SUITS = %w{ spades clubs hearts diamonds } | |
class Deck | |
attr_accessor :cards | |
def initialize |