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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/bin/99_game +7 -5
  3. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ae707ee874e6780900e45ecea81e381268939643
4
- data.tar.gz: 5ab40aa1e3f8c843f3355df6c9e6a4f07795df70
3
+ metadata.gz: e346d94577334cf41ba3b59df6584f642b75f622
4
+ data.tar.gz: 0a8bfdd50f5f97abb68a96b4852c8191c192aaab
5
5
  SHA512:
6
- metadata.gz: 304cc0a6e2c503858f93fbe072ab29e78cda72a62bbf623689bcf24a68272ef9433d02d6872bcb1efc8d0dceaef1bcad1d35adffb3831c5c99b7c122c4e7da88
7
- data.tar.gz: 63e5246e1f325db375aeb33d0eab76783c05a128a6934197e74a133bdba1351ea643762705b1d8cb307be35850454570affca19513a442b98e5e40963b95ef96
6
+ metadata.gz: ce93a41eadf833a345c6fe4cb44be4acde1cf4739d1dd812ec8c5db945b472e10b93ba8ed7dcf1d049b0c6137fd429a043d32f4e29d3cf9c7966666cdb4f4751
7
+ data.tar.gz: df542d469ccf2279695548fd4e1f2db9f3fbe891a88b2a1682ace76113632dcfa631f32944aee89a7848ae48fe448064214b79e427cc1e5294a5c46e1d320a71
@@ -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 "3.2.2"
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.5
49
+ pause 1.4
49
50
  puts "The dealer played #{dealer.play dealer.cards[outcome]}"
50
- pause(0.5)
51
+ pause(0.6)
51
52
  puts "The value is now #{$value}\n"
52
- pause(1.5)
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 "It's your turn!"
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.0.5.pre
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: 1.3.1
96
+ version: '0'
97
97
  requirements: []
98
98
  rubyforge_project:
99
99
  rubygems_version: 2.5.2