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 +4 -4
- data/Gemfile.lock +1 -1
- data/codebreaker_karolina-0.1.0.gem +0 -0
- data/codebreaker_karolina-0.1.1.gem +0 -0
- data/codebreaker_karolina-0.1.2.gem +0 -0
- data/lib/codebreaker_karolina/version.rb +1 -1
- data/lib/modules/game.rb +2 -1
- metadata +5 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 84a47effeddafeda4411b08602e9a8de2cc07d16b3b43e480d79546bc951d470
|
4
|
+
data.tar.gz: 2c9e78284baf9500f39059eb7512aa0e5ce28f9cbca28bb3567a688e47b8a121
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f483622d39b4a960722381a7ee15ea6288f5b2081f0802fb32854cb432405db7ca74ac6842bb7395f632f8e3ccf31238f3efc299c2360992f92288bc28ca6083
|
7
|
+
data.tar.gz: e0d53cd64f77705bbf7dbba7c620cf046ae79c6d1e77db747469dea6a246610f7116e3f555996e5c234bf229e52bb3e67b295d32972ae5916bf51137dd44e738
|
data/Gemfile.lock
CHANGED
Binary file
|
Binary file
|
Binary file
|
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
|
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.
|
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-
|
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
|