Sha256: 4b0f6229c25dbfa51c48e6187252f57e92ae50c72d7ff36681b6ba1813f5b363
Contents?: true
Size: 299 Bytes
Versions: 2
Compression:
Stored size: 299 Bytes
Contents
require "twenty_one/face_card" module TwentyOne class AceCard < FaceCard @@LOWER_VALUE = 1 @@UPPER_VALUE = 11 def initialize(suit) super suit, :ace @value = @@LOWER_VALUE end def use_upper @value = @@UPPER_VALUE end def use_lower @value = @@LOWER_VALUE end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
twenty_one-0.1.1 | lib/twenty_one/ace_card.rb |
twenty_one-0.1.0 | lib/twenty_one/ace_card.rb |