99_game 1.1.1 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/99_game +17 -31
- 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: b33ed45d745995561b4ab1e80407dd6df0c51046
|
4
|
+
data.tar.gz: f35c309b83e5eba9af1500670cb3192dfc46802c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 935784af3788d3e7b61bc62ce48b1b1acd470e2875d15a6bf06ab34165d4bdf6d318b7cb735d7f7cbbe11b3a958c1e20bc4876f7a6e2260d0e5e23cb00e85e2e
|
7
|
+
data.tar.gz: 9d433ba8190343bb7e01d0d739dbf786318f7c391627db609697999c5a4c00ed0db22c0d598b9fa2d62b8b54fff4a0ffd8a57f587b2e07fc2dfe88af93e3dcc5
|
data/bin/99_game
CHANGED
@@ -1,36 +1,22 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
require '99_game'
|
3
|
-
BEGIN { #
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
puts
|
10
|
-
puts "\
|
11
|
-
|
12
|
-
puts "\
|
13
|
-
|
14
|
-
puts "\t\
|
15
|
-
puts "\t\t
|
16
|
-
|
17
|
-
puts "\
|
18
|
-
|
19
|
-
|
20
|
-
sleep(3)
|
21
|
-
puts "\t\u00B7 4, 9, and Jacks are worth 0"
|
22
|
-
sleep(3)
|
23
|
-
puts "\t\u00B7 Queens decrease the value by 10"
|
24
|
-
sleep(3)
|
25
|
-
puts "\t\u00B7 Kings set the value to 99"
|
26
|
-
sleep(3)
|
27
|
-
puts "\t\u00B7 Jokers set the value to 0"
|
28
|
-
sleep(3); puts
|
29
|
-
print "Press Enter to begin"; gets.chomp
|
30
|
-
else; sleep(2)
|
31
|
-
end
|
32
|
-
rescue Exception; puts "Continuing"
|
33
|
-
end
|
3
|
+
BEGIN { # Looks at its arguements
|
4
|
+
ARGV[0] = "-h" if ARGV[0] == "--help"
|
5
|
+
case ARGV[0]
|
6
|
+
when "-h"
|
7
|
+
puts "\u00B7 Commands"
|
8
|
+
puts "\t\u00B7 -h/--help - shows this message\n"
|
9
|
+
puts "\u00B7 Gameplay"
|
10
|
+
puts "\t\u00B7 Your goal is to get your opponent to bring the value over 99 by playing 1 of your 3 cards."
|
11
|
+
puts "\t\u00B7 A card will usually increase the value by itself, but there are a few exceptions:"
|
12
|
+
puts "\t\t\u00B7 Aces are worth 1"
|
13
|
+
puts "\t\t\u00B7 1 - 10 are worth themselves, with the exception of 4 and 9"
|
14
|
+
puts "\t\t\u00B7 4, 9, and Jacks are worth 0"
|
15
|
+
puts "\t\t\u00B7 Queens decrease the value by 10"
|
16
|
+
puts "\t\t\u00B7 Kings set the value to 99"
|
17
|
+
puts "\t\t\u00B7 Jokers set the value to 0"
|
18
|
+
exit
|
19
|
+
end
|
34
20
|
puts
|
35
21
|
puts
|
36
22
|
}
|