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.
- checksums.yaml +8 -8
- data/bin/7_half +3 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZWJhM2NiMGY2YzVhMGRkYTVlMTAwNzc1OTM5NmEwNjE5MzgwNDg1Mg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
OTZmYmVkNTViOGRiODkyYjUwZjY4NGQwN2M1NzRhZjQ3NmFjNDU3OQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NWJmMDMyMjVhNGRmOWMyYjczYjIzZTQ2YjM3ZTRhMDQzZDVhMWE2N2QzMzk0
|
10
|
+
OGJhOTE5MmE5YjMxYmNlZDRmMjM0ZThhNjgwODcwNmM1MDA5OThlMGE1ODYz
|
11
|
+
NzYwZTc0ZGE2NmM0ZTAzZTJjNGE2Yjc2MWViMDdjNjExMGJjMjg=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
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
|
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.
|
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-
|
11
|
+
date: 2014-11-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|