lib/cards_lib/standard.rb in cards_lib-0.0.3 vs lib/cards_lib/standard.rb in cards_lib-0.0.4

- old
+ new

@@ -1,10 +1,6 @@ module CardsLib module Standard - PLAYING_CARDS = [ - 'cA','c2','c3','c4','c5','c6','c7','c8','c9','cT','cJ','cQ','cK', - 'dA','d2','d3','d4','d5','d6','d7','d8','d9','dT','dJ','dQ','dK', - 'hA','h2','h3','h4','h5','h6','h7','h8','h9','hT','hJ','hQ','hK', - 'sA','s2','s3','s4','s5','s6','s7','s8','s9','sT','sJ','sQ','sK' - ] + PLAYING_CARDS = 'A23456789TJQK'.chars.product('cdhs'.chars).map(&:join) + ASCII_CARDS = 'A23456789TJQK'.chars.product('♣♦♥♠'.chars).map(&:join) end end