99_game 4.0.5.pre → 5.0.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 +7 -5
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e346d94577334cf41ba3b59df6584f642b75f622
|
4
|
+
data.tar.gz: 0a8bfdd50f5f97abb68a96b4852c8191c192aaab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ce93a41eadf833a345c6fe4cb44be4acde1cf4739d1dd812ec8c5db945b472e10b93ba8ed7dcf1d049b0c6137fd429a043d32f4e29d3cf9c7966666cdb4f4751
|
7
|
+
data.tar.gz: df542d469ccf2279695548fd4e1f2db9f3fbe891a88b2a1682ace76113632dcfa631f32944aee89a7848ae48fe448064214b79e427cc1e5294a5c46e1d320a71
|
data/bin/99_game
CHANGED
@@ -6,7 +6,7 @@ BEGIN { # Looks at its arguements
|
|
6
6
|
ARGV[0] = "-v" if ARGV[0] == "--version"
|
7
7
|
case ARGV[0]
|
8
8
|
when "-v"
|
9
|
-
puts "
|
9
|
+
puts "5.0.0"
|
10
10
|
exit
|
11
11
|
when "-h"
|
12
12
|
puts "\u00B7 Commands"
|
@@ -37,6 +37,7 @@ END { # Thanks for playing
|
|
37
37
|
$value, value1, value2, value3, dealer, user = 0,0,0,0, Hand.new, Hand.new
|
38
38
|
loop do
|
39
39
|
puts "\nIt's the dealer's turn!"
|
40
|
+
|
40
41
|
i, outcomes = 0, dealer.test_outcomes
|
41
42
|
if outcomes[0] >= outcomes[1] && outcomes[0] >= outcomes[2]
|
42
43
|
outcome = 0
|
@@ -45,16 +46,16 @@ loop do
|
|
45
46
|
else
|
46
47
|
outcome = 2
|
47
48
|
end
|
48
|
-
pause 1.
|
49
|
+
pause 1.4
|
49
50
|
puts "The dealer played #{dealer.play dealer.cards[outcome]}"
|
50
|
-
pause(0.
|
51
|
+
pause(0.6)
|
51
52
|
puts "The value is now #{$value}\n"
|
52
|
-
pause(1.
|
53
|
+
pause(1.75)
|
53
54
|
if $value > 99 # Runs when you win and exits loop
|
54
55
|
puts "You win!"
|
55
56
|
break
|
56
57
|
end
|
57
|
-
puts "
|
58
|
+
puts "\nIt's your turn!"
|
58
59
|
pause 1
|
59
60
|
user.view_cards
|
60
61
|
pause 0.5
|
@@ -81,6 +82,7 @@ loop do
|
|
81
82
|
break
|
82
83
|
end
|
83
84
|
puts "You drew #{user.cards.last}"
|
85
|
+
pause 1.75
|
84
86
|
end
|
85
87
|
__END__
|
86
88
|
Programmed by: Zachary Perlmutter
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: 99_game
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 5.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Zachary Roth Perlmutter
|
@@ -91,9 +91,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
91
91
|
version: 1.9.2
|
92
92
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- - "
|
94
|
+
- - ">="
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version:
|
96
|
+
version: '0'
|
97
97
|
requirements: []
|
98
98
|
rubyforge_project:
|
99
99
|
rubygems_version: 2.5.2
|