codebreaker_ruban 0.3.4 → 0.3.5

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: 13b1991fcb6a9957ab1057434dca5ede64ac48c70551c3ce5b88b827c622f942
4
- data.tar.gz: 7a33e83beffb2f02168ef596d2a545a96e9f58cc92971de5ecbe14eaf1c1e5a1
3
+ metadata.gz: 4adf81bdc2e10a038ad9e793ceaa52e8e2730bb1a2d56fa7b0473ffa38ba8922
4
+ data.tar.gz: f1728db981dc4da5b0f4e277c08ffd020310205f8f3713d5c19acfb7cc392c2b
5
5
  SHA512:
6
- metadata.gz: 46fb2beb3edbf2cf0a7eacfd25e70811701dcef2b3506635ea7edd35f6a2c3379348b5cce707b3c5c863b24b2f0be5ace398c95e08dfb83fd9b299c00d0a7cd2
7
- data.tar.gz: 5e1e246e88f91e25c5359b707f9ee21f876c708978dd7865ea5fcb41c551a498fec960f507a57838421ae735b6137a30d3102dbd951d0c5e8c15251f6b260ef1
6
+ metadata.gz: e409eabe510eb759c905dcfd29618eda1b0294b99287a544440197af055b9f751208071e665c293a080d594af5d914af43aae58f9aa6ae8e880cb6ed4e2d34a5
7
+ data.tar.gz: 27d89a076b893589d38f480fe42e284a19acb739f15e415b7aaf5f8ea729fedfc0dcbc5b26060874dfb69a4a09f8a9e7c8b3b190a3f875fde3c7dc3ca2ffc43f
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- codebreaker_ruban (0.3.4)
4
+ codebreaker_ruban (0.3.5)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -58,10 +58,10 @@ module CodebreakerRuban
58
58
  Message.choice_difficulty(EASY_STRING, MEDIUM_STRING, HELL_STRING)
59
59
  process_user_input do |input|
60
60
  @difficulty = case input
61
- when EASY_STRING then Game::EASY
62
- when MEDIUM_STRING then Game::MEDIUM
63
- when HELL_STRING then Game::HELL
64
- end
61
+ when EASY_STRING then Game::DIFFICULTY[:easy]
62
+ when MEDIUM_STRING then Game::DIFFICULTY[:medium]
63
+ when HELL_STRING then Game::DIFFICULTY[:hell]
64
+ end
65
65
  return Message.error_difficulty unless @difficulty
66
66
 
67
67
  set_state(:start_game)
@@ -16,6 +16,7 @@ module CodebreakerRuban
16
16
 
17
17
  def initialize(difficulty, user)
18
18
  @user = user
19
+ binding.pry
19
20
  @difficulty = difficulty[:difficulty]
20
21
  @secret_code = generator_secret_code
21
22
  @attempts_total = difficulty[:attempts_total]
@@ -1,3 +1,3 @@
1
1
  module CodebreakerRuban
2
- VERSION = "0.3.4"
2
+ VERSION = "0.3.5"
3
3
  end
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
4
+ version: 0.3.5
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-17 00:00:00.000000000 Z
11
+ date: 2019-01-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler