blackjack1 0.0.1 → 0.0.2

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 +8 -8
  2. data/bin/blackjack1 +3 -3
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZWNmZTU5YzM4YmM5MWI3MWExMWZjM2ZiYTRlMWU1ODYzOTI5YTc5Yw==
4
+ OTE0OTNjYWIzOTA0NDQzNWI2MjU4MDA1ZmQwZDMwZTMwNWI1ZjMzMQ==
5
5
  data.tar.gz: !binary |-
6
- ZGZkY2IzZGUwZTRjNWU5NzJiYjk2ZTU3MmExYmU3MjQ2YmVlMzgzYw==
6
+ NzMxOWViMDMzNzdkODJiZmQ5MGFhYTY4NTFjYmRiMGM5YmFiODcyMQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MzcxYjdhNjIzMGQ0YWY0MmNmMjE0YTc3NjE1MTcwNTgxMzM0OGI0N2MwMWE4
10
- OTdkYTYyZGM2MTBlZjQ4ZDNjOWFhZDMyZjE4OTc3MDZmMmUxZTU5MjcwM2Zi
11
- ODdjN2Q3MDM4MzMwNmU2N2I1YTAyYzg5ZjQxMWIwZWM2YjI3NTQ=
9
+ MWJiZDRlMWQ3MWFmODMwZjhhYjAyNTgxYzc5NmI3ODg0YWY1MDc5NGY1NTU4
10
+ ZTM1OTFjNzEzZmE3M2IxYzkxOGE4ZGYwNmM5NGQ4OTg3YzY0Y2NhMGIzYTM1
11
+ MWM0MGRiNDlmZWE4NTM4YThkMDlhMzcxZTFkZjQxMTdjMzg2MWU=
12
12
  data.tar.gz: !binary |-
13
- NTY1NDM1ZjdjMDc5YWVjN2I3MTE4MTkzZWVjOGE3MGM4MDNmMGQwMTFlZDYy
14
- M2IzMDQ1MTQ3ZTExODU2MzhiYmRlZWI3ODY5NmJmYzY5ODkxZTk3MjQ2ZWNl
15
- MGQzYWUyNDQxZDlkY2YzZTQ4Yjg2ZGY3ZmRlMjMyNzM4YjVhMWM=
13
+ NmMzNGI4MmNmYjI4YjM5YzJiNjgxYjU5OTdjYjVkMmNlNWQzYzJkMmU4NjEy
14
+ NTY3OTc1N2I3NjkyZDJjY2NjNjA5ZjAxODY4ODc2Mzg3MzIyMjczZWNkNzYz
15
+ NzNkMjM5N2I5MWJjZDQzNjFjMTE3NjE0ZjY4YjdlMGIxZDY1OTM=
data/bin/blackjack1 CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
  require "blackjack1"
3
- Hand.deck, :inputerror = CardDeck::Deck.new, "Invalid input. Please input '(h)it' or '(s)tay'"
3
+ Hand.deck, inputerror = CardDeck::Deck.new, "Invalid input. Please input '(h)it' or '(s)tay'"
4
4
  dealer, player, view = Hand.new, Hand.new, proc do |player|
5
5
  puts "You have: #{player.view}"
6
6
  sleep(0.5)
@@ -13,11 +13,11 @@ unless player.blackjack?
13
13
  sleep 1
14
14
  loop do
15
15
  puts
16
- catch :inputerror do
16
+ catch inputerror do
17
17
  print "(h)it or (s)tay? "
18
18
  action = gets.chomp.downcase
19
19
  if action.include?("s") then break
20
- elsif !action.include?("h") then throw :inputerror
20
+ elsif !action.include?("h") then throw inputerror
21
21
  end
22
22
  end
23
23
  sleep(1)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blackjack1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zachary Perlmutter