card_deck 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/card_deck.rb +3 -5
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4e2923955364a6b2d7baad32f49294f475488c8e
|
4
|
+
data.tar.gz: aad2f79a7bf43bc4e84569169c1638d03785c3a2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3cf8291cc0cc66f7442707eceffc8bd387a724ee627956b4f2f95fc05d6d50f206a698a1051257e743bac7569aee2b93719a6882f6afc07cb6f4fbb147ce372c
|
7
|
+
data.tar.gz: ce7cc2f7c1979d4cff1ac2b7246f7a7ac113c5e9966b789384ef438ea36dd6eacf5643ab32ed423ca396cebeebd8d0426ec6d7f21954cf9d96fc721b83464d94
|
data/lib/card_deck.rb
CHANGED
@@ -29,12 +29,10 @@
|
|
29
29
|
@cards = Array.new
|
30
30
|
for suit in Card::SUIT
|
31
31
|
stock 'Ace', suit
|
32
|
-
stock
|
33
|
-
stock 'Queen', suit
|
32
|
+
for num in (2..10).to_a; stock num, suit; end
|
34
33
|
stock 'Jack', suit
|
35
|
-
|
36
|
-
|
37
|
-
end
|
34
|
+
stock 'Queen', suit
|
35
|
+
stock 'King', suit
|
38
36
|
end
|
39
37
|
2.times {stock 'Joker'} if jokers
|
40
38
|
end
|