codebracker_simb 0.1.3 → 0.1.6

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
  SHA256:
3
- metadata.gz: c5ad797321c868302b5651d7d5421e08ad670d4c04ab2aa4f8d1a1d7f9cce74a
4
- data.tar.gz: c17fbfae789e48bfcbc87cc5b03d422fb0993a456de7e7faf5f2d32df9ec50aa
3
+ metadata.gz: 0fc16be30286585030d9dea7220dff29ecb64542b4c3dac9c0c3584add87dde2
4
+ data.tar.gz: 712adc60f06308372b8cb7259567fbf12221b59bda6d845fc60ddf94a13d7322
5
5
  SHA512:
6
- metadata.gz: 95f242730df1df8fe992d5178051d60e838481ac65d36066bc4d5da112f753aed287fdbb1b297656bbb8aae5278ac3c205636c6e21c41d4494fcaf7e0de91d83
7
- data.tar.gz: 79df68cae8e70b58710d7bd69482517d915306d3f0f7a07d5be5c5f69c1129e24aa5a524c34747f94d4bd687dc4c39eeadf0935c00a8c036626011f6b5a63b13
6
+ metadata.gz: 0c1d72adb9c51770a207bf66b788ccd26f9e5d70be25b8b32aa59096a44593890b56c7b3d80ff443e8f57f451931a7e48234eb52da70aee09b8f448d5a20c0ac
7
+ data.tar.gz: b692b099fe37ccd00d3534b3e81f99abacde731377d3d7f93d2d25486f4636bc4ebc625699d79ed3b16fa83364cb7728812806b0713e928bddeba4415bbb4784
@@ -28,8 +28,6 @@ module CodebrackerSimb
28
28
  break if win? || @attempts == 0
29
29
  end
30
30
  end
31
-
32
- private
33
31
 
34
32
  def input_answer(input)
35
33
  @answer = Code.new(input)
@@ -39,8 +37,8 @@ module CodebrackerSimb
39
37
  @code = Array.new(4) { rand(1..6) }
40
38
  end
41
39
 
42
- def end_with_win?(result)
43
- result == '++++'
40
+ def end_with_win?
41
+ code == answer
44
42
  end
45
43
 
46
44
  def refresh_attempts_quantity
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CodebrackerSimb
4
- VERSION = "0.1.3"
4
+ VERSION = "0.1.6"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: codebracker_simb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - max