7_half 0.0.1.pre.1.1 → 0.0.1.pre.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. checksums.yaml +8 -8
  2. data/bin/7_half +3 -1
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YTcyOWY1ODY2YjM5MTM0ODY1M2NiMzQxYzFiZWFhOGM2ZWQ1ZDllZQ==
4
+ ZWJhM2NiMGY2YzVhMGRkYTVlMTAwNzc1OTM5NmEwNjE5MzgwNDg1Mg==
5
5
  data.tar.gz: !binary |-
6
- NDM5NjcyNTk0ZDg2M2MwMmY2MzU2MTA5OGExODdmY2RmMDc3YzI1YQ==
6
+ OTZmYmVkNTViOGRiODkyYjUwZjY4NGQwN2M1NzRhZjQ3NmFjNDU3OQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MmY1MzcwYzIzOWYyOGViYmUwZWFhZDkyMTk0MTk3ZWI5YmEwMzYyMjYzNjZj
10
- ODBiZjVjYmU1OTJmZmFiNjliYzgwNTZlMzVhMTVhZjc5YjZlNGE5YmMxYzBi
11
- MWMwNmViMjdmMjMxYjQwOGRiNjU0MjEwMjY1MDZhMmM1ODE2Yjg=
9
+ NWJmMDMyMjVhNGRmOWMyYjczYjIzZTQ2YjM3ZTRhMDQzZDVhMWE2N2QzMzk0
10
+ OGJhOTE5MmE5YjMxYmNlZDRmMjM0ZThhNjgwODcwNmM1MDA5OThlMGE1ODYz
11
+ NzYwZTc0ZGE2NmM0ZTAzZTJjNGE2Yjc2MWViMDdjNjExMGJjMjg=
12
12
  data.tar.gz: !binary |-
13
- NTQ1ZThlM2JhMzRmYjI2ZDE4M2FjYzg1Y2FhY2Q5NGZjYTJmYzU4ZWMxZDk0
14
- YWEzZjYyMWY2N2UxZWQzZGY1NzM1MjNmN2VlNTZmMGQzNGYxNTdiZGQzZDFi
15
- ZTkxNGFhOTNiMjFjZjM1N2MxYThjYzMwYjRiZTY4MDY5MWY1NjQ=
13
+ MDYxMzJiY2E4ZWQzZjhkYWJjZDBhMDU4YTlkNzY2NmM3ZjM1Y2IzODNjNDEw
14
+ MTA3ODI5MzBmOGVhZDMzZTlkMzAyZmY5Mjk4MjYxMTc2MTgyZjczZmYwMDA5
15
+ ZDk2YzE0MGQ0NmZiNzNkMzhmMTc3N2QyYzBmYTM0YTRlMWE5YmQ=
data/bin/7_half CHANGED
@@ -1,15 +1,17 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
3
  require "hand"
4
+
4
5
  def s_puts(message, time=0.5)
5
6
  puts "\t" + message
6
7
  sleep time
7
8
  end
8
9
 
10
+
9
11
  player, dealer = Hand.new, Hand.new
10
12
  s_puts "Your turn!", 1
11
13
  loop do # Player's turn
12
- s_puts "You have #{player.cards.view}"
14
+ s_puts "You have #{player.cards}"
13
15
  break if (player.bust? || player.value == 7.5)
14
16
  print "\tDo you want to (h)it or (s)tay? "
15
17
  case gets.chomp.downcase[0]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: 7_half
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1.pre.1.1
4
+ version: 0.0.1.pre.2
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-24 00:00:00.000000000 Z
11
+ date: 2014-11-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec