codeguessing 0.4 → 0.4.1

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: e2be5270a620c86f26d398e9c6af49b43aa5c8f4
4
- data.tar.gz: 1327eb3f6a111ee3581cdc8593d350f1283ce728
3
+ metadata.gz: 2aa815c7d607d3b1c7a5f00d2312ac694dedeabd
4
+ data.tar.gz: 00187427fe2182cea4d61b922d488212c1b32cbe
5
5
  SHA512:
6
- metadata.gz: 6c6db8055afff298cf5d5c4abc09d7f88f32679c425bf08bb42a1a31c8a4913f3c20f2b53820d6bec01fa725634eda7bd34cee8e8ec09dc2173c9b7e781e26fe
7
- data.tar.gz: fbc530de9fe44ed38e626068f01643c5dc41ac34cb84384082728a5be3c6fd9b29bb3d5a90b10c5539a23a575011e05c21ab8b74a7f9ae90f78ddf4631e335bc
6
+ metadata.gz: bc1463e1b945dd6e7946169202a7d44e8168c690a8b70f8d05084948a870de8c5be0a10dae6f114e7fb961e0197e1dc216aa4a916e5dba3010c99ab906a1d4b1
7
+ data.tar.gz: 71191db403855ddc8de890760bcb088357b3d1ee7a90973e30b7762550f21e3b79bd2bd86d271f12cc30e601bd411ea4fa3a84e6b75f1ebf1cd0bdad448b7ab9
data/README.md CHANGED
@@ -24,6 +24,6 @@ Or install it yourself as:
24
24
 
25
25
  ```ruby
26
26
  require 'codeguessing'
27
- Codeguessing::Console.new # Console game
27
+ Codeguessing::Console.new.go # Console game
28
28
  Codeguessing::Game.new # Game model
29
29
  ```
@@ -21,7 +21,8 @@ module Codeguessing
21
21
  case
22
22
  when char == secret_code[i]
23
23
  res += '+'
24
- when secret_code.count(char) == 1
24
+ when secret_code.count(char) == 1 &&
25
+ code.count(char) == 1
25
26
  hash[char] = '-'
26
27
  end
27
28
  end
@@ -1,3 +1,3 @@
1
1
  module Codeguessing
2
- VERSION = "0.4"
2
+ VERSION = "0.4.1"
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.4'
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - bezrukavyi