codebreaker 0.1.2 → 0.1.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: be35db7b202c1c480e9cffd3c90486ca196f3ab6
4
- data.tar.gz: 0b30a11067f434cd9c70167d0a10a2ec9c34d942
3
+ metadata.gz: 0092f34381495c767b8b565ab4caf1c5e22886cf
4
+ data.tar.gz: f0b73a794d13e91c3e5ffaf0edd08f881f5c7611
5
5
  SHA512:
6
- metadata.gz: cca827f69e234b1aa8833b7c9d0be79bca72ad17ccae08f4d93ae0b1b5fd125fe55e25516f0464c0f8a56b944d9115a9aa87a5c7bc18f52352599cd64c98139a
7
- data.tar.gz: baf62a7901e81c49acd083cf3b0ff826a080bb8360487318db0ca04061ab8e7c46256e44ca608b454244b9ef0936258b9809b4ef27c2a37b350f8ed640246f7c
6
+ metadata.gz: 701a4c3f8fbee2b516c2a871352b50e4e86d334bb7ea785a646d87ae4c7f4e1c3bbefb5f82a89d396b54cd32188064072afaabfa7ee30223ee13d1061407473b
7
+ data.tar.gz: e04db5007a01c95e9d684f60bea78f674d2a83f8c84e0a8534a15df20455ed41999e1c25523d4d39d240aee8b01f37dd7db02979c5702d5b9496711f674590a8
@@ -12,7 +12,7 @@ module Codebreaker
12
12
  @secret_code = ""
13
13
  @round_number = 0
14
14
  @hints_used = 0
15
- @gues_and_results = {}
15
+ @gues_results = {}
16
16
  end
17
17
 
18
18
  def start
@@ -44,7 +44,7 @@ module Codebreaker
44
44
  end
45
45
  end
46
46
  result = pluses + minuses
47
- @gues_and_results[@round_number] = [gues.to_s, result]
47
+ @gues_results[gues.to_s] = result
48
48
  @round_number += 1
49
49
  result
50
50
  end
@@ -1,3 +1,3 @@
1
1
  module Codebreaker
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: codebreaker
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vasiliy Burlaka