codebreaker_karolina 0.1.0 → 0.1.3

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
  SHA256:
3
- metadata.gz: a88d07653eb8fa47f4861847e0dd76e61805fda7f3b082a66c6be8ddc95d2e71
4
- data.tar.gz: ce208a5f4ead3195cdbfe992d1c3154d201b74ba4c75900308b4d518698abb05
3
+ metadata.gz: 84a47effeddafeda4411b08602e9a8de2cc07d16b3b43e480d79546bc951d470
4
+ data.tar.gz: 2c9e78284baf9500f39059eb7512aa0e5ce28f9cbca28bb3567a688e47b8a121
5
5
  SHA512:
6
- metadata.gz: b4ad47a6076255af4cfbb3003fc7c3fb3bebe80ae1ba4bc938f7230f4469cc428a192e6adafef23e992921d93329984f2e721feb6e7269505f50b73b71ab40b3
7
- data.tar.gz: 98c8892ff95792e93d27ec7cc0e23e80c4302d7732066f310f2377087c34a1d8e130c2d49ac57ac30e138d107a9713626b2f9ab4067abd23bd7fb188fba91747
6
+ metadata.gz: f483622d39b4a960722381a7ee15ea6288f5b2081f0802fb32854cb432405db7ca74ac6842bb7395f632f8e3ccf31238f3efc299c2360992f92288bc28ca6083
7
+ data.tar.gz: e0d53cd64f77705bbf7dbba7c620cf046ae79c6d1e77db747469dea6a246610f7116e3f555996e5c234bf229e52bb3e67b295d32972ae5916bf51137dd44e738
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- codebreaker_karolina (0.1.0)
4
+ codebreaker_karolina (0.1.3)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
Binary file
Binary file
Binary file
@@ -1,3 +1,3 @@
1
1
  module CodebreakerKarolina
2
- VERSION = '0.1.0'.freeze
2
+ VERSION = '0.1.3'.freeze
3
3
  end
data/lib/modules/game.rb CHANGED
@@ -5,6 +5,7 @@ module CodebreakerKarolina
5
5
  class Game
6
6
  include CodebreakerConstants
7
7
  attr_accessor :user, :difficulty
8
+ attr_reader :secret_code
8
9
 
9
10
  def start
10
11
  @secret_code = generate_code.freeze
@@ -34,7 +35,7 @@ module CodebreakerKarolina
34
35
  return unless hints_left?
35
36
 
36
37
  @user.used_hints += 1
37
- @hint.shuffle.pop
38
+ @hint.shuffle!.pop
38
39
  end
39
40
 
40
41
  private
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: codebreaker_karolina
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - drkarolina
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-09-07 00:00:00.000000000 Z
11
+ date: 2022-09-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fasterer
@@ -124,6 +124,9 @@ files:
124
124
  - Rakefile
125
125
  - bin/console
126
126
  - bin/setup
127
+ - codebreaker_karolina-0.1.0.gem
128
+ - codebreaker_karolina-0.1.1.gem
129
+ - codebreaker_karolina-0.1.2.gem
127
130
  - lib/codebreaker_karolina.rb
128
131
  - lib/codebreaker_karolina/version.rb
129
132
  - lib/constants.rb