codebracker_logic_game 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 8d100f9f8a2b6b64d405544e75085bce6843f64fb4122ef75bae5faf9d266a06
4
+ data.tar.gz: 28cf178d763900c995657cb87085c99f54604a25a60dd194fd9d6cb0a8b09e3e
5
+ SHA512:
6
+ metadata.gz: 040c9d6ed0f8a8d50bad965efa3a8254a10f3ac183f54f5f29bb17ea1d60b54ecd7b68a8cb167619bd4e207574f7c3c5cf79ccd2c87d1790ba081309af8a1aff
7
+ data.tar.gz: c96a4d87e683099cd7da42801d476a790b497daea603bce47c3d34fbd4b170df022dcc4d8709366efd17589e129555f9587362c2fbf50d784d9220f86dec5e91
data/.gitignore ADDED
@@ -0,0 +1,11 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+
10
+ # rspec failure tracking
11
+ .rspec_status
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/.rubocop.yml ADDED
@@ -0,0 +1 @@
1
+ inherit_from: lib/rubocop/.rubocop_todo.yml
data/.travis.yml ADDED
@@ -0,0 +1,6 @@
1
+ ---
2
+ language: ruby
3
+ cache: bundler
4
+ rvm:
5
+ - 2.7.6
6
+ before_install: gem install bundler -v 2.1.4
data/Gemfile ADDED
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ source 'https://rubygems.org'
4
+
5
+ # Specify your gem's dependencies in codebracker_logic_game.gemspec
6
+ gemspec
7
+
8
+ gem 'rake', '~> 12.0'
9
+ gem 'rspec', '~> 3.0'
data/Gemfile.lock ADDED
@@ -0,0 +1,90 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ codebracker_logic_game (0.1.0)
5
+
6
+ GEM
7
+ remote: https://rubygems.org/
8
+ specs:
9
+ ast (2.4.2)
10
+ coderay (1.1.3)
11
+ colorize (0.8.1)
12
+ concurrent-ruby (1.1.10)
13
+ diff-lcs (1.5.0)
14
+ docile (1.4.0)
15
+ fasterer (0.10.0)
16
+ colorize (~> 0.7)
17
+ ruby_parser (>= 3.19.1)
18
+ i18n (1.10.0)
19
+ concurrent-ruby (~> 1.0)
20
+ json (2.6.2)
21
+ method_source (1.0.0)
22
+ parallel (1.22.1)
23
+ parser (3.1.2.0)
24
+ ast (~> 2.4.1)
25
+ pry (0.14.1)
26
+ coderay (~> 1.1)
27
+ method_source (~> 1.0)
28
+ rainbow (3.1.1)
29
+ rake (12.3.3)
30
+ regexp_parser (2.5.0)
31
+ rexml (3.2.5)
32
+ rspec (3.11.0)
33
+ rspec-core (~> 3.11.0)
34
+ rspec-expectations (~> 3.11.0)
35
+ rspec-mocks (~> 3.11.0)
36
+ rspec-core (3.11.0)
37
+ rspec-support (~> 3.11.0)
38
+ rspec-expectations (3.11.0)
39
+ diff-lcs (>= 1.2.0, < 2.0)
40
+ rspec-support (~> 3.11.0)
41
+ rspec-mocks (3.11.1)
42
+ diff-lcs (>= 1.2.0, < 2.0)
43
+ rspec-support (~> 3.11.0)
44
+ rspec-support (3.11.0)
45
+ rubocop (1.31.2)
46
+ json (~> 2.3)
47
+ parallel (~> 1.10)
48
+ parser (>= 3.1.0.0)
49
+ rainbow (>= 2.2.2, < 4.0)
50
+ regexp_parser (>= 1.8, < 3.0)
51
+ rexml (>= 3.2.5, < 4.0)
52
+ rubocop-ast (>= 1.18.0, < 2.0)
53
+ ruby-progressbar (~> 1.7)
54
+ unicode-display_width (>= 1.4.0, < 3.0)
55
+ rubocop-ast (1.19.1)
56
+ parser (>= 3.1.1.0)
57
+ rubocop-rspec (2.12.1)
58
+ rubocop (~> 1.31)
59
+ ruby-progressbar (1.11.0)
60
+ ruby_parser (3.19.1)
61
+ sexp_processor (~> 4.16)
62
+ sexp_processor (4.16.1)
63
+ simplecov (0.21.2)
64
+ docile (~> 1.1)
65
+ simplecov-html (~> 0.11)
66
+ simplecov_json_formatter (~> 0.1)
67
+ simplecov-html (0.12.3)
68
+ simplecov_json_formatter (0.1.4)
69
+ table_print (1.5.7)
70
+ unicode-display_width (2.2.0)
71
+ yaml (0.2.0)
72
+
73
+ PLATFORMS
74
+ ruby
75
+
76
+ DEPENDENCIES
77
+ codebracker_logic_game!
78
+ fasterer (~> 0.10.0)
79
+ i18n (~> 1.10.0)
80
+ pry (~> 0.14.1)
81
+ rake (~> 12.0)
82
+ rspec (~> 3.0)
83
+ rubocop (~> 1.31.1)
84
+ rubocop-rspec (~> 2.12.1)
85
+ simplecov (~> 0.21.2)
86
+ table_print (~> 1.5.7)
87
+ yaml (~> 0.2.0)
88
+
89
+ BUNDLED WITH
90
+ 2.1.4
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2022 Anastasiia Losytska
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,40 @@
1
+ # CodebrackerLogicGame
2
+
3
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/codebracker_logic_game`. To experiment with that code, run `bin/console` for an interactive prompt.
4
+
5
+ TODO: Delete this and the text above, and describe your gem
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ ```ruby
12
+ gem 'codebracker_logic_game'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle install
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install codebracker_logic_game
22
+
23
+ ## Usage
24
+
25
+ TODO: Write usage instructions here
26
+
27
+ ## Development
28
+
29
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
30
+
31
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
32
+
33
+ ## Contributing
34
+
35
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/codebracker_logic_game.
36
+
37
+
38
+ ## License
39
+
40
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
data/Rakefile ADDED
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'bundler/gem_tasks'
4
+ require 'rspec/core/rake_task'
5
+
6
+ RSpec::Core::RakeTask.new(:spec)
7
+
8
+ task default: :spec
data/bin/console ADDED
@@ -0,0 +1,15 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ require 'bundler/setup'
5
+ require 'codebracker_logic_game'
6
+
7
+ # You can add fixtures and/or initialization code here to make experimenting
8
+ # with your gem easier. You can also use a different console, if you like.
9
+
10
+ # (If you use this, don't forget to add pry to your Gemfile!)
11
+ # require "pry"
12
+ # Pry.start
13
+
14
+ require 'irb'
15
+ IRB.start(__FILE__)
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,40 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'lib/codebracker_logic_game/version'
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = 'codebracker_logic_game'
7
+ spec.version = CodebrackerLogicGame::VERSION
8
+ spec.authors = ['Anastasiia Losytska']
9
+ spec.email = ['alosytska@gmail.com']
10
+
11
+ spec.summary = 'Logic game Codebracker'
12
+ spec.homepage = 'https://github.com/anastasiialosytska/codebracker_logic_game'
13
+ spec.license = 'MIT'
14
+ spec.required_ruby_version = Gem::Requirement.new('>= 2.6.0')
15
+
16
+ spec.metadata['allowed_push_host'] = 'https://rubygems.org'
17
+
18
+ spec.metadata['homepage_uri'] = spec.homepage
19
+ spec.metadata['source_code_uri'] = 'https://github.com/anastasiialosytska/codebracker_logic_game'
20
+
21
+ # Specify which files should be added to the gem when it is released.
22
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
23
+ spec.files = Dir.chdir(File.expand_path(__dir__)) do
24
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
25
+ end
26
+ spec.bindir = 'exe'
27
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
28
+ spec.require_paths = ['lib']
29
+
30
+ spec.add_development_dependency 'fasterer', '~> 0.10.0'
31
+ spec.add_development_dependency 'i18n', '~> 1.10.0'
32
+ spec.add_development_dependency 'pry', '~> 0.14.1'
33
+ spec.add_development_dependency 'rake', '~> 13.0.6'
34
+ spec.add_development_dependency 'rspec', '~> 3.11.0'
35
+ spec.add_development_dependency 'rubocop', '~> 1.31.1'
36
+ spec.add_development_dependency 'rubocop-rspec', '~> 2.12.1'
37
+ spec.add_development_dependency 'simplecov', '~> 0.21.2'
38
+ spec.add_development_dependency 'table_print', '~> 1.5.7'
39
+ spec.add_development_dependency 'yaml', '~> 0.2.0'
40
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module CodebrackerLogicGame
4
+ VERSION = '0.1.0'
5
+ end
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'codebracker_logic_game/version'
4
+
5
+ module CodebrackerLogicGame
6
+ require 'pry'
7
+ require 'table_print'
8
+ require 'yaml'
9
+ require 'i18n'
10
+ require_relative 'locales/config'
11
+ require_relative 'modules/storage'
12
+ require_relative 'modules/valid'
13
+ require_relative 'modules/validation'
14
+ require_relative 'user'
15
+ require_relative 'secret_code'
16
+ require_relative 'game'
17
+ end
data/lib/game.rb ADDED
@@ -0,0 +1,90 @@
1
+ # frozen_string_literal: true
2
+
3
+ module CodebrackerLogicGame
4
+ class Game
5
+ include Storage
6
+
7
+ private
8
+
9
+ attr_reader :secret_code
10
+
11
+ public
12
+
13
+ attr_reader :user, :attempts, :total_attempts, :hints, :total_hints, :level
14
+
15
+ GAME_DIFFICULTIES = { simple: { attempts: 15, hints: 2 }, medium: { attempts: 10, hints: 1 },
16
+ hell: { attempts: 5, hints: 1 } }.freeze
17
+ WIN = :win
18
+ LOSS = :loss
19
+ PLUS = '+'
20
+ MINUS = '-'
21
+ NUMBER_OF_ENCRYPTED_DIGITS = 4
22
+ VALUES_FOR_ENCRYPTED_DIGITS = (1..6).to_a
23
+
24
+ def initialize(user_name)
25
+ @user = User.new(user_name)
26
+ @secret_code = SecretCode.new(generate_secret_code).value
27
+ end
28
+
29
+ def add_hints_attempts(level)
30
+ @level = level.to_sym
31
+ @total_attempts = Game::GAME_DIFFICULTIES[@level][:attempts]
32
+ @total_hints = Game::GAME_DIFFICULTIES[@level][:hints]
33
+ @attempts = @total_attempts
34
+ @hints = @total_hints
35
+ end
36
+
37
+ def take_hint
38
+ raise I18n.t(:out_of_hints) if @hints.zero?
39
+
40
+ @hints -= 1
41
+
42
+ @secret_code.digits.shuffle.pop
43
+ end
44
+
45
+ def guess(user_variant)
46
+ return Game::LOSS if @attempts.zero?
47
+
48
+ answer = SecretCode.new(user_variant.to_i)
49
+ @attempts -= 1 if answer.valid?
50
+
51
+ if answer.value == @secret_code
52
+ store_game
53
+ return Game::WIN
54
+ end
55
+
56
+ check_user_answer(answer.value)
57
+ end
58
+
59
+ private
60
+
61
+ def generate_secret_code
62
+ VALUES_FOR_ENCRYPTED_DIGITS.sample(NUMBER_OF_ENCRYPTED_DIGITS).join.to_i
63
+ end
64
+
65
+ def check_user_answer(answer)
66
+ answer_array = answer.digits
67
+ secret_code_array = @secret_code.digits
68
+
69
+ pros = answer_array.zip(secret_code_array).count { |x, y| x == y }
70
+
71
+ answer_array.each_index do |i|
72
+ answer_array.delete_at(i) && secret_code_array.delete_at(i) if answer_array[i] == secret_code_array[i]
73
+ end
74
+
75
+ cons = secret_code_array.select { |x| answer_array.include?(x) }.count
76
+
77
+ generate_response(pros, cons)
78
+ end
79
+
80
+ def generate_response(pros, cons)
81
+ response = []
82
+ return response.join if pros.zero? && cons.zero?
83
+
84
+ pros.times { response.push(Game::PLUS) }
85
+ cons.times { response.push(Game::MINUS) }
86
+
87
+ response.join
88
+ end
89
+ end
90
+ end
@@ -0,0 +1,4 @@
1
+ # frozen_string_literal: true
2
+
3
+ I18n.load_path << Dir["#{File.expand_path('locales')}/*.yml"]
4
+ I18n.available_locales = [:en]
@@ -0,0 +1,6 @@
1
+ en:
2
+ out_of_hints: 'You have no more hints'
3
+ set_value: 'Set the value of variable!'
4
+ incorrect_type: 'Incorrect type!'
5
+ incorrect_length: 'Incorrect length!'
6
+ incorrect_value: 'Incorrect value!'
@@ -0,0 +1,43 @@
1
+ # frozen_string_literal: true
2
+
3
+ module CodebrackerLogicGame
4
+ module Storage
5
+ STORAGE_FILE = 'storage.yml'
6
+
7
+ def store_game
8
+ saved_games = load_games_history
9
+ saved_games << self
10
+ File.write(STORAGE_FILE, saved_games.to_yaml)
11
+ end
12
+
13
+ def show_statistics
14
+ tp(statistics_with_raiting).class
15
+ end
16
+
17
+ private
18
+
19
+ def load_games_history
20
+ File.empty?(STORAGE_FILE) ? [] : YAML.load_file(STORAGE_FILE)
21
+ end
22
+
23
+ def data_for_statistics
24
+ load_games_history.map do |game|
25
+ { name: game.user.name, level: game.level, attempts_total: game.total_attempts,
26
+ attempts_used: game.total_attempts - game.attempts, hints_total: game.total_hints,
27
+ hints_used: game.total_hints - game.hints }
28
+ end
29
+ end
30
+
31
+ def sort_data_for_statistics
32
+ data_for_statistics.sort_by { |row| [row[:level], row[:attempts_used], row[:hints_used]] }
33
+ end
34
+
35
+ def statistics_with_raiting
36
+ raiting = 0
37
+ sort_data_for_statistics.map do |row|
38
+ raiting += 1
39
+ Hash[:raiting, raiting].merge!(row)
40
+ end
41
+ end
42
+ end
43
+ end
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ module CodebrackerLogicGame
4
+ module Valid
5
+ def valid?
6
+ validate!
7
+ true
8
+ rescue StandardError
9
+ false
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,19 @@
1
+ # frozen_string_literal: true
2
+
3
+ module CodebrackerLogicGame
4
+ module Validation
5
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity, Metrics/AbcSize
6
+ def validate(name, options = {})
7
+ define_method(:validate!) do
8
+ attribute = instance_variable_get("@#{name}".to_sym)
9
+ raise I18n.t(:set_value) if options[:presence] && (attribute.nil? || attribute == '')
10
+ raise I18n.t(:incorrect_type) if options[:type] && !attribute.instance_of?(options[:type])
11
+ raise I18n.t(:incorrect_length) if options[:length] && !options[:length].include?(attribute.to_s.length)
12
+ raise I18n.t(:incorrect_value) if options [:values] && !attribute.digits.select! do |digit|
13
+ options[:values].include?(digit)
14
+ end.nil?
15
+ end
16
+ end
17
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity, Metrics/AbcSize
18
+ end
19
+ end
@@ -0,0 +1,7 @@
1
+ require: rubocop-rspec
2
+
3
+ Style/Documentation:
4
+ Enabled: false
5
+
6
+ RSpec/FilePath:
7
+ Enabled: false
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ module CodebrackerLogicGame
4
+ class SecretCode
5
+ extend Validation
6
+ include Valid
7
+
8
+ attr_accessor :value
9
+
10
+ validate :value, presence: true, type: Integer, length: [4], values: (1..6)
11
+
12
+ def initialize(value)
13
+ @value = value
14
+ validate!
15
+ end
16
+ end
17
+ end
data/lib/user.rb ADDED
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ module CodebrackerLogicGame
4
+ class User
5
+ extend Validation
6
+ include Valid
7
+
8
+ attr_reader :name
9
+
10
+ validate :name, presence: true, type: String, length: (3..20)
11
+
12
+ def initialize(name)
13
+ @name = name
14
+ validate!
15
+ end
16
+ end
17
+ end
data/storage.yml ADDED
@@ -0,0 +1,37 @@
1
+ ---
2
+ - !ruby/object:CodebrackerLogicGame::Game
3
+ user: !ruby/object:CodebrackerLogicGame::User
4
+ name: Username
5
+ secret_code: 3641
6
+ level: :simple
7
+ total_attempts: 15
8
+ total_hints: 2
9
+ attempts: 14
10
+ hints: 2
11
+ - !ruby/object:CodebrackerLogicGame::Game
12
+ user: !ruby/object:CodebrackerLogicGame::User
13
+ name: Username
14
+ secret_code: 1643
15
+ level: :simple
16
+ total_attempts: 15
17
+ total_hints: 2
18
+ attempts: 14
19
+ hints: 2
20
+ - !ruby/object:CodebrackerLogicGame::Game
21
+ user: !ruby/object:CodebrackerLogicGame::User
22
+ name: Username
23
+ secret_code: 4312
24
+ level: :simple
25
+ total_attempts: 15
26
+ total_hints: 2
27
+ attempts: 14
28
+ hints: 2
29
+ - !ruby/object:CodebrackerLogicGame::Game
30
+ user: !ruby/object:CodebrackerLogicGame::User
31
+ name: Username
32
+ secret_code: 6153
33
+ level: :simple
34
+ total_attempts: 15
35
+ total_hints: 2
36
+ attempts: 14
37
+ hints: 2
metadata ADDED
@@ -0,0 +1,210 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: codebracker_logic_game
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Anastasiia Losytska
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2022-07-11 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: fasterer
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 0.10.0
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 0.10.0
27
+ - !ruby/object:Gem::Dependency
28
+ name: i18n
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: 1.10.0
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: 1.10.0
41
+ - !ruby/object:Gem::Dependency
42
+ name: pry
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: 0.14.1
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: 0.14.1
55
+ - !ruby/object:Gem::Dependency
56
+ name: rake
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: 13.0.6
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: 13.0.6
69
+ - !ruby/object:Gem::Dependency
70
+ name: rspec
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: 3.11.0
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: 3.11.0
83
+ - !ruby/object:Gem::Dependency
84
+ name: rubocop
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: 1.31.1
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: 1.31.1
97
+ - !ruby/object:Gem::Dependency
98
+ name: rubocop-rspec
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: 2.12.1
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: 2.12.1
111
+ - !ruby/object:Gem::Dependency
112
+ name: simplecov
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: 0.21.2
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: 0.21.2
125
+ - !ruby/object:Gem::Dependency
126
+ name: table_print
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - "~>"
130
+ - !ruby/object:Gem::Version
131
+ version: 1.5.7
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - "~>"
137
+ - !ruby/object:Gem::Version
138
+ version: 1.5.7
139
+ - !ruby/object:Gem::Dependency
140
+ name: yaml
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - "~>"
144
+ - !ruby/object:Gem::Version
145
+ version: 0.2.0
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - "~>"
151
+ - !ruby/object:Gem::Version
152
+ version: 0.2.0
153
+ description:
154
+ email:
155
+ - alosytska@gmail.com
156
+ executables: []
157
+ extensions: []
158
+ extra_rdoc_files: []
159
+ files:
160
+ - ".gitignore"
161
+ - ".rspec"
162
+ - ".rubocop.yml"
163
+ - ".travis.yml"
164
+ - Gemfile
165
+ - Gemfile.lock
166
+ - LICENSE.txt
167
+ - README.md
168
+ - Rakefile
169
+ - bin/console
170
+ - bin/setup
171
+ - codebracker_logic_game.gemspec
172
+ - lib/codebracker_logic_game.rb
173
+ - lib/codebracker_logic_game/version.rb
174
+ - lib/game.rb
175
+ - lib/locales/config.rb
176
+ - lib/locales/en.yml
177
+ - lib/modules/storage.rb
178
+ - lib/modules/valid.rb
179
+ - lib/modules/validation.rb
180
+ - lib/rubocop/.rubocop_todo.yml
181
+ - lib/secret_code.rb
182
+ - lib/user.rb
183
+ - storage.yml
184
+ homepage: https://github.com/anastasiialosytska/codebracker_logic_game
185
+ licenses:
186
+ - MIT
187
+ metadata:
188
+ allowed_push_host: https://rubygems.org
189
+ homepage_uri: https://github.com/anastasiialosytska/codebracker_logic_game
190
+ source_code_uri: https://github.com/anastasiialosytska/codebracker_logic_game
191
+ post_install_message:
192
+ rdoc_options: []
193
+ require_paths:
194
+ - lib
195
+ required_ruby_version: !ruby/object:Gem::Requirement
196
+ requirements:
197
+ - - ">="
198
+ - !ruby/object:Gem::Version
199
+ version: 2.6.0
200
+ required_rubygems_version: !ruby/object:Gem::Requirement
201
+ requirements:
202
+ - - ">="
203
+ - !ruby/object:Gem::Version
204
+ version: '0'
205
+ requirements: []
206
+ rubygems_version: 3.1.6
207
+ signing_key:
208
+ specification_version: 4
209
+ summary: Logic game Codebracker
210
+ test_files: []