Sha256: 44c1d6cdd3a5ff49d8109dfd8e1691e3467464b2082da937afd3979cf35550da
Contents?: true
Size: 359 Bytes
Versions: 6
Compression:
Stored size: 359 Bytes
Contents
require "card_deck" class CardDeck::Card # Represents a card in the deck # Value of the card def value case @num when "Ace" then 1 when 2..3 then @num when 4 then 0 when 5..8 then @num when 9 then 0 when 10 then 10 when "Jack" then 0 when "Queen" then -10 when "King" then 99 when "Joker" then 0 end end end
Version data entries
6 entries across 6 versions & 1 rubygems
Version | Path |
---|---|
99_game-4.0.4 | lib/card.rb |
99_game-4.0.3 | lib/card.rb |
99_game-3.2.2 | lib/card.rb |
99_game-3.2.0 | lib/card.rb |
99_game-3.1.4 | lib/card.rb |
99_game-2.1.0 | lib/card.rb |