codebreaker_ruban 0.3.2 → 0.3.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/lib/app/entities/game.rb +5 -3
- data/lib/codebreaker_ruban/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 13b1991fcb6a9957ab1057434dca5ede64ac48c70551c3ce5b88b827c622f942
|
4
|
+
data.tar.gz: 7a33e83beffb2f02168ef596d2a545a96e9f58cc92971de5ecbe14eaf1c1e5a1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 46fb2beb3edbf2cf0a7eacfd25e70811701dcef2b3506635ea7edd35f6a2c3379348b5cce707b3c5c863b24b2f0be5ace398c95e08dfb83fd9b299c00d0a7cd2
|
7
|
+
data.tar.gz: 5e1e246e88f91e25c5359b707f9ee21f876c708978dd7865ea5fcb41c551a498fec960f507a57838421ae735b6137a30d3102dbd951d0c5e8c15251f6b260ef1
|
data/Gemfile.lock
CHANGED
data/lib/app/entities/game.rb
CHANGED
@@ -8,9 +8,11 @@ module CodebreakerRuban
|
|
8
8
|
|
9
9
|
LENGTH_GUESS = 4
|
10
10
|
RANGE_SECRET_CODE = (1..6).freeze
|
11
|
-
|
12
|
-
|
13
|
-
|
11
|
+
DIFFICULTY = {
|
12
|
+
easy: { hints_total: 2, attempts_total: 15, difficulty: 'easy' },
|
13
|
+
medium: { hints_total: 1, attempts_total: 10, difficulty: 'medium' },
|
14
|
+
hell: { hints_total: 1, attempts_total: 5, difficulty: 'hell' }
|
15
|
+
}
|
14
16
|
|
15
17
|
def initialize(difficulty, user)
|
16
18
|
@user = user
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: codebreaker_ruban
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- IRuban
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-01-
|
11
|
+
date: 2019-01-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|