99_game 2.0.0 → 2.0.1

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 +9 -9
  3. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 79c3b36f954a1926f4e319e3584ce62d397af750
4
- data.tar.gz: 23d12f11a841e502c980cb64750c66ab5790d439
3
+ metadata.gz: ab6e6ccb1ed0f34b0834f1841b3447415ecf88ae
4
+ data.tar.gz: 487037fecb7cc2ab3dc38477a17d3428903bfb00
5
5
  SHA512:
6
- metadata.gz: d563dec8728ab21af85908c7cea2520375ce326b4b9c410d21133781f0d8552f9b4fedf40177c264994eea75603ef7d49b9c2727d8fabf87e0bb20652a7a0966
7
- data.tar.gz: d381e887c98a7825e64526ae42578057ea55e06b3b7a5d08ca4854fb73f4c0c7c7cce93b1648f284547f1b1d3085cffb529aa599dfa8f0d6b6e1a1da72313ed4
6
+ metadata.gz: d94c20e256a343765c94043bb09ec43a314e6c6966036fa4966ccd825f013eaef42a07789a09404a9ffd357c3e0a73aacca5196aa2bcc742f02fd03751161aa5
7
+ data.tar.gz: 28e2863215ecd38ebce1fbf8b1d4c059d48ec808a01b55466b25b6e972c9227a259c9c12d5f40c449310bacae03662cd458022c4c10499da9ab526014c28519a
@@ -6,8 +6,8 @@ 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 "2.0.0"
10
- exit
9
+ puts "2.0.1"
10
+ exit
11
11
  when "-h"
12
12
  puts "\u00B7 Commands"
13
13
  puts "\t\u00b7 -v/--version - display version"
@@ -31,9 +31,9 @@ BEGIN { # Looks at its arguements
31
31
  end
32
32
  }
33
33
  END { # Thanks for playing
34
- sleep(2)
34
+ sleep(1.5)
35
35
  puts "\n\tThanks for playing 99!"
36
- sleep(3)
36
+ sleep(2.5)
37
37
  }
38
38
  $value, value1, value2, value3, dealer, user = 0,0,0,0, Hand.new(deck), Hand.new(deck)
39
39
  loop do
@@ -58,18 +58,18 @@ loop do
58
58
  $card = dealer.hand[2].num
59
59
  dealer.play(dealer.hand[2])
60
60
  end
61
- pause(2)
61
+ pause(1.5)
62
62
  puts "\tThe dealer played a(n) #{$card}"
63
63
  pause(0.5)
64
64
  puts "\tThe value is now #{$value}"
65
65
  puts
66
- pause(2)
66
+ pause(1.5)
67
67
  if $value > 99 # Runs when you win and exits loop
68
68
  puts "\tYou win!"
69
69
  break
70
70
  end
71
71
  puts "\tIt's your turn!"
72
- pause(1.5)
72
+ pause(1)
73
73
  user.view
74
74
  pause(0.5)
75
75
  print "\tPick a card to play by typing in the name of the card => "
@@ -80,11 +80,11 @@ loop do
80
80
  turn = false
81
81
  end
82
82
  end
83
- pause(1.5)
83
+ pause(1)
84
84
  puts "\tYou drew a(n) #{user.hand[2].num}"
85
85
  pause(0.5)
86
86
  puts "\tThe value is now #{$value}"
87
- pause(2)
87
+ pause(1.5)
88
88
  if $value > 99 # Runs when dealer wins and exits loop
89
89
  puts "\tYou lose"
90
90
  break
metadata CHANGED
@@ -1,17 +1,17 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: 99_game
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zachary Perlmutter
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-10 00:00:00.000000000 Z
11
+ date: 2014-09-02 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: |
14
- This is a text-based interpretation of the card game 99. Comes with the gem in the form of an executable. Make sure to read the rules in `99_game -h` before playing
14
+ This is a text-based interpretation of the card game 99. Comes with the gem in the form of an executable. Make sure to read the rules in `99_game -h` before playing.
15
15
  email: zrp200@gmail.com
16
16
  executables:
17
17
  - 99_game