blackjack1 0.0.6 → 0.1.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 +14 -0
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YTBlODVjMjcyNGNlMTY5OTRlNzZlODgxNTZmZTY0ZDRmYTY4MDM1Mw==
4
+ YTlhMzdjZDc5MmUxZmY5YzBmYzk0Mjc2ZTBkMzc2NzQ2ODhhNjZhMA==
5
5
  data.tar.gz: !binary |-
6
- YTdiY2VjMzZkNmE3OWUwNTNiYjFhNzdhMzc3NzAyMDA4ZGQxNDkyZg==
6
+ NjZiNmNkMDRmYThjMDAxNDNiYmIxNTcxMTllMzMyM2RlMjcwOWNiZA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ODM2M2M0ZWJkMTM5OWY2N2NhYmQ4NGZmYzU1NGQ5MDgzOThmM2I5ODk0YTkz
10
- OTlkNjliODk0ZmM3NmJjMjZiNTBhNzFhMmQ2ZTU1ODA1MDcxYzQ5ZGJlYmU1
11
- YmM4MTJiOWI4ZmI2NmZjMjkxMDVlYTcyYmEyMDNmMTYzNzY4ZDc=
9
+ OWFiYjA4NmEwMWZkZjEyMDMyOWY1ZTNhYWIwZDMzZmJlNDVkMmQ5OWFlMzg3
10
+ NGMzZmY5ZDA3OWJjNGRkNzQxNmNlNDA2NGI1YTBhN2M0Y2ZhZjk3ZGIyZWM1
11
+ YjQ3MzU0ZTEyOTRlNTZiYzI1OGI1N2NhYzg2YzNjMjJmMTU4MDM=
12
12
  data.tar.gz: !binary |-
13
- NGMyYmUwZDdkMzI4OWY3OWM3NTk3ZTc0NjQ0MDQ3OWVlYTgxOGQwOWU1NTY4
14
- NmY0NTZiZjRlNmQ1ZGI2OWRmYTY5YmM4NDU1YTUzYTdiZDgwYjE3OTQxZGZl
15
- NmQ5NzMwYTRiZTdlNmM5N2QyNmRhMjE4MDUyNmI4MDM0NTMyZDc=
13
+ NGI4M2E1NDViNTlhODQxN2M2NGYwNGU2MDdlZTlmYzk3YjE3N2UwN2MwMmU3
14
+ MzUyM2VjZDQ4Nzg2NWUzZmI1YzI1Mzg4MmMwNTNkYmRlODdlZGJhNzVlMTk3
15
+ OGZkMjA2ZjcwNzk2Nzg1YjQ0ODgyNDgxNmU0YWZmYTI2YmU3NmM=
data/bin/blackjack1 CHANGED
@@ -1,4 +1,18 @@
1
1
  #!/usr/bin/env ruby
2
+ BEGIN {
3
+ helpmessage = <<HELP
4
+ \u00B7Goals:
5
+ \u00B7Beat the dealer by having your value be greater than his, without going over 21 and busting.
6
+ \u00B7Get blackjack by having your starting hand have a value of 21.
7
+ \u00B7Values:
8
+ \u00B7Ace => 1 or 11
9
+ \u00B7Number => itself
10
+ \u00B7King, Queen, Jack => 10
11
+ HELP
12
+ if ARGV[0].class == String
13
+ puts helpmessage if ARGV[0].include? "-h"
14
+ end
15
+ }
2
16
  require "blackjack1"
3
17
  Hand.deck, inputerror = CardDeck::Deck.new, "Invalid input. Please input '(h)it' or '(s)tay'"
4
18
  dealer, player, view = Hand.new, Hand.new, proc do |player|
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.6
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zachary Perlmutter