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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f5f995c58157757c2bb029dfe79c0b502f55630a
4
- data.tar.gz: f84b6142e9fc028e716b7db328f2e84be559a72f
3
+ metadata.gz: 90f9a168f72cea878f0459996e22cefd09164549
4
+ data.tar.gz: 269a901a4bb78ac34916c22fb8290f0af84422a4
5
5
  SHA512:
6
- metadata.gz: b0520c2ba19395703254e8a046c4924337f7511aee93a940b29f06393ec34ad48027fbe2f4aed2215c643ded8144ad369f699e152bd6a023459b3a77272f75b4
7
- data.tar.gz: 8cc9bec66b8262825f04e839613c7710ea49b9ac6c29242642520b53e519aa6c95af7540198488723e8c0a4d71d0867b8a6233d180694ee8ece2175485d15528
6
+ metadata.gz: 3f78ce85aa51e5316ed555ebb332a2278f699f907465420539238f80c3f0e096735197611a4bb26e24b3bf00b52b37ae68f0dacc31de8f526ed2b7ca3d59e575
7
+ data.tar.gz: 0f5e69bf9c6ff17b0bb7b3a777bf32f0b529bc36e8beae064568f14dc58e271d3d147f280315923d375a86ae2487da027d08af533d6cdc708b441150dad3388a
@@ -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'
@@ -71,11 +71,11 @@ module Codeguessing
71
71
  end
72
72
 
73
73
  def win
74
- @state = true
74
+ @state = 'true'
75
75
  end
76
76
 
77
77
  def loose
78
- @state = false
78
+ @state = 'false'
79
79
  end
80
80
 
81
81
  def random
@@ -1,3 +1,3 @@
1
1
  module Codeguessing
2
- VERSION = "0.3.1"
2
+ VERSION = "0.3.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: codeguessing
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - bezrukavyi