codeguessing 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/codeguessing/console.rb +2 -2
- data/lib/codeguessing/game.rb +2 -2
- data/lib/codeguessing/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 90f9a168f72cea878f0459996e22cefd09164549
|
4
|
+
data.tar.gz: 269a901a4bb78ac34916c22fb8290f0af84422a4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3f78ce85aa51e5316ed555ebb332a2278f699f907465420539238f80c3f0e096735197611a4bb26e24b3bf00b52b37ae68f0dacc31de8f526ed2b7ca3d59e575
|
7
|
+
data.tar.gz: 0f5e69bf9c6ff17b0bb7b3a777bf32f0b529bc36e8beae064568f14dc58e271d3d147f280315923d375a86ae2487da027d08af533d6cdc708b441150dad3388a
|
data/lib/codeguessing/console.rb
CHANGED
@@ -24,8 +24,8 @@ module Codeguessing
|
|
24
24
|
|
25
25
|
def start
|
26
26
|
puts "Attempt(s): #{@game.attempts} | Hint(s): #{@game.hint_count}"
|
27
|
-
return loose if @game.state == false
|
28
|
-
return win if @game.state == true
|
27
|
+
return loose if @game.state == 'false'
|
28
|
+
return win if @game.state == 'true'
|
29
29
|
|
30
30
|
action = gets.chomp
|
31
31
|
if action == 'hint'
|
data/lib/codeguessing/game.rb
CHANGED
data/lib/codeguessing/version.rb
CHANGED