blackjack1 0.1.4 → 2.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +8 -8
  2. data/README.md +1 -0
  3. data/bin/blackjack1 +13 -0
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- N2M0NDNhNzE0MDY4OGJjMzA1YTUxZWIwOTdkOTQ0MGI5OWQwZjVkYQ==
4
+ NjFkYTIyMTQ0OTNiMDczYjAzOTA0NjBkMzVjMzEyNDQ2YjIxZWQ2Zg==
5
5
  data.tar.gz: !binary |-
6
- ZjkzNjRlNWRjMzMwOWM1ZDc2YTE2ZGJkY2JlYTFlYjk5NjA0YTk5MA==
6
+ ZmEzZTRhYmEzNjU5YjQzMmQ1ZDY0MDEzNTNlOTViNGRhODYzZDhiOQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NWRhOWYxZThlNDAxNjNmYWU2MjE0OGU3NzJmZmYwMTZhMWIzOGVlNzAwNjE1
10
- MmY0NDI3NzU0YzM2NDRjMzJhZDFkMGRkZDY1NjVhYTZhMzU4NjkzMTkyZTdk
11
- OGIyYjU3NzFiMGZlNmNjMDkxMDlmY2QwNGFkOGEwZDcyOTcyMmM=
9
+ MDYyYjQ3MGE1MTYzMDRhNmJjMGNlNWNlOWY4OTcxOWVmMmI2MTM3ZDBkOWU1
10
+ YzI4ODNjNmNhYTI5NDYzZDNhYmUzMDczYjRkNWUyYWJkMTVmNDQ5OTRhZWEx
11
+ YTJmZWRkYjY3MWZlZGI1OGYzODdlYzU2YzQ4NjA1MjVjNTk1ZGM=
12
12
  data.tar.gz: !binary |-
13
- YjQ5YzBlYmQzZjBkNjkwNTAwN2U0NGI4YmFjYzZjNTAwOGYzNTNkMmEzYjgw
14
- MmJjYjcxZDQ5NTdiYWUwZDQ1NGIwMzEyNTg3OTVlMWZhYjU5M2E4YmEyMmVl
15
- NDIwYWQ3ZGM5ODQ1NDc2N2UwNGU3NTI4ZTkxZDg4ZGNjYjYzMzU=
13
+ NzQyMDdlYTdjZmM0MWIxYTlmMzgwNzFhZGIxYWFhNWU3NWVjMjU0NGFmMjQy
14
+ Njc4NTBjN2FkYWZiYjM2MDE4MzE2MjA5N2ZhMTVmNGJjNzBmNDM3YjdlNjU1
15
+ NzJjNGNiZjNlY2RkYmNkNjNiMTg4NjQ4NDRiMGVjNTQxMzhhZmI=
data/README.md CHANGED
@@ -1,6 +1,7 @@
1
1
  # blackjack
2
2
  The commonly played card game in casinos and for fun. Have fun!
3
3
  ## Badges
4
+ [![Gem Version](https://badge.fury.io/rb/blackjack1.svg)](http://badge.fury.io/rb/blackjack1)
4
5
  [![Build Status](https://travis-ci.org/Zrp200/blackjack1.svg?branch=master)](https://travis-ci.org/Zrp200/blackjack1)
5
6
  [![Code Climate](https://codeclimate.com/github/Zrp200/blackjack1/badges/gpa.svg)](https://codeclimate.com/github/Zrp200/blackjack1)
6
7
  [![Test Coverage](https://codeclimate.com/github/Zrp200/blackjack1/badges/coverage.svg)](https://codeclimate.com/github/Zrp200/blackjack1)
data/bin/blackjack1 CHANGED
@@ -2,12 +2,21 @@
2
2
  BEGIN {
3
3
  helpmessage = <<HELP
4
4
  \u00B7Goals:
5
+ <<<<<<< HEAD
5
6
  \u00B7Beat the dealer by having your value be greater than his, without going over 21 and busting.
6
7
  \u00B7Get blackjack by having your starting hand have a value of 21.
7
8
  \u00B7Values:
8
9
  \u00B7Ace => 1 or 11
9
10
  \u00B7Number => itself
10
11
  \u00B7King, Queen, Jack => 10
12
+ =======
13
+ \u00B7Beat the dealer by having your value be greater than his, without going over 21 and busting.
14
+ \u00B7Get blackjack by having your starting hand have a value of 21.
15
+ \u00B7Values:
16
+ \u00B7Ace => 1 or 11
17
+ \u00B7Number => itself
18
+ \u00B7King, Queen, Jack => 10
19
+ >>>>>>> origin/master
11
20
  HELP
12
21
  if ARGV[0].class == String
13
22
  if ARGV[0].include? "-h"
@@ -40,6 +49,10 @@ unless player.blackjack?
40
49
  puts "You finished with #{player.value}."
41
50
  else
42
51
  puts "You busted @ #{player.value}."
52
+ sleep(1)
53
+ puts "Dealer wins"
54
+ sleep(2)
55
+ exit
43
56
  end
44
57
  sleep 2
45
58
  if dealer.blackjack?
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blackjack1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 2.0.3
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-11-14 00:00:00.000000000 Z
11
+ date: 2014-11-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: card_deck