lib/cards_lib/standard.rb in cards_lib-0.1.2 vs lib/cards_lib/standard.rb in cards_lib-0.2.0
- old
+ new
@@ -1,8 +1,12 @@
require_relative 'standard/rules'
+require_relative 'standard/rankers'
+require_relative 'standard/evaluators'
module CardsLib
module Standard
- PLAYING_CARDS = 'A23456789TJQK'.chars.product('cdhs'.chars).map(&:join)
- ASCII_CARDS = 'A23456789TJQK'.chars.product('♣♦♥♠'.chars).map(&:join)
+ RANKS = 'A23456789TJQK'.chars
+ SUITS = 'cdhs'.chars
+ PLAYING_CARDS = RANKS.product(SUITS ).map(&:join)
+ ASCII_CARDS = RANKS.product('♣♦♥♠'.chars).map(&:join)
end
end