codebreaker_Bavykin 0.1.2 → 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
  SHA1:
3
- metadata.gz: 8cb956ecb11c5569314bca619220dac1ddf062b5
4
- data.tar.gz: 3b42e98a6bd69dd79c54083f35ecda6ec7f021b0
3
+ metadata.gz: d37519f30032a17022d7b40d6eb4305dd9d8c3f2
4
+ data.tar.gz: 6d5cb617d5b18aa2cc29889e16be0775a46c5bca
5
5
  SHA512:
6
- metadata.gz: 72f62791b07c7ae609e80d532cb9a8c225891cf7466bec04dc9a0903713292270c84bacbaf7e28726d1ef6a27b5b64ccbbf472cf30f4bd763982457fd158667f
7
- data.tar.gz: bdf7eefacafe811d5de8bbe13ef10d5556e4998c09ab2bd026ea5fc76a207d7241060a4cd38198af149fcd130c4a76a80c699741c5540bf34c73908aac776f3b
6
+ metadata.gz: a448e5199ab50e027f2454679d18c3fede2e47535b572154c5730e5575212b95f0913224097ba0d8c2235418b6c9fe633996a0bdfb418c43b43829e172519b77
7
+ data.tar.gz: 3234c22c3ce9eaad273c9fa57ccdd1cbac627d39336c07fc8b45cfe5ffd0ced2621b730ab790940cc284b6851214baafa2c165f67e363af286cd0249658bc1af
@@ -19,9 +19,9 @@ module Codebreaker
19
19
  end
20
20
 
21
21
  def self.generate_game_data(difficulty = :easy)
22
- @secret_code = Array.new(4) { rand(1..6) }
23
- @attempts = DIFFICULTIES.dig(difficulty, :attempts)
24
- @hints = secret_code.shuffle.take(DIFFICULTIES.dig(difficulty, :hints))
22
+ { secret_code: Array.new(4) { rand(1..6) },
23
+ attempts: DIFFICULTIES.dig(difficulty, :attempts),
24
+ hints: secret_code.shuffle.take(DIFFICULTIES.dig(difficulty, :hints)) }
25
25
  end
26
26
 
27
27
  def handle_guess(user_answer)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Codebreaker
4
- VERSION = '0.1.2'
4
+ VERSION = '0.1.3'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: codebreaker_Bavykin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dmitriy Bavykin