rb-snake 0.0.1

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: d226ce857ed8de1e615d68cbc27d4e4ef6cd136ff154d6a44917dfb4ffd7735f
4
+ data.tar.gz: 23d3352ff62318377681d43caee10a018fb77ccefcabdac03c416986a5a76041
5
+ SHA512:
6
+ metadata.gz: a32fc0bdf90147f87ca693194ab85537be1b2ded3988ae86cdf609a0ed93211718a2b68cecd2618e85e25928af606f1dcf919e59f4d753204c4c04460f972256
7
+ data.tar.gz: 601e241bcc4e4bfc51aa8db50b5360047dc50a5969a47b92352e95fc48c1c8dcbeb010b2d54f87da00d4b92f2deced545e1908b9f679b3ea2dd51f6ca0bb23b9
data/.byebug_history ADDED
@@ -0,0 +1,4 @@
1
+ exit
2
+ actual_state
3
+ n
4
+ expected_state.snake
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/.rubocop.yml ADDED
@@ -0,0 +1,16 @@
1
+ require:
2
+ - rubocop-rspec
3
+
4
+ AllCops:
5
+ TargetRubyVersion: 3.1.2
6
+
7
+ Style/StringLiterals:
8
+ Enabled: true
9
+ EnforcedStyle: double_quotes
10
+
11
+ Style/StringLiteralsInInterpolation:
12
+ Enabled: true
13
+ EnforcedStyle: double_quotes
14
+
15
+ Layout/LineLength:
16
+ Max: 120
data/.stickler.yml ADDED
@@ -0,0 +1,11 @@
1
+ linters:
2
+ rubocop:
3
+ display_cop_names: true
4
+ fixer: true
5
+ files:
6
+ ignore:
7
+ - "bin/*"
8
+ - "db/*"
9
+ - "config/*"
10
+ - "Guardfile"
11
+ - "Rakefile"
data/CHANGELOG.md ADDED
@@ -0,0 +1,5 @@
1
+ ## [Unreleased]
2
+
3
+ ## [0.1.0] - 2023-04-15
4
+
5
+ - Initial release
@@ -0,0 +1,84 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
6
+
7
+ We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
8
+
9
+ ## Our Standards
10
+
11
+ Examples of behavior that contributes to a positive environment for our community include:
12
+
13
+ * Demonstrating empathy and kindness toward other people
14
+ * Being respectful of differing opinions, viewpoints, and experiences
15
+ * Giving and gracefully accepting constructive feedback
16
+ * Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
17
+ * Focusing on what is best not just for us as individuals, but for the overall community
18
+
19
+ Examples of unacceptable behavior include:
20
+
21
+ * The use of sexualized language or imagery, and sexual attention or
22
+ advances of any kind
23
+ * Trolling, insulting or derogatory comments, and personal or political attacks
24
+ * Public or private harassment
25
+ * Publishing others' private information, such as a physical or email
26
+ address, without their explicit permission
27
+ * Other conduct which could reasonably be considered inappropriate in a
28
+ professional setting
29
+
30
+ ## Enforcement Responsibilities
31
+
32
+ Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
33
+
34
+ Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
35
+
36
+ ## Scope
37
+
38
+ This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
39
+
40
+ ## Enforcement
41
+
42
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at mapra99@gmail.com. All complaints will be reviewed and investigated promptly and fairly.
43
+
44
+ All community leaders are obligated to respect the privacy and security of the reporter of any incident.
45
+
46
+ ## Enforcement Guidelines
47
+
48
+ Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
49
+
50
+ ### 1. Correction
51
+
52
+ **Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
53
+
54
+ **Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
55
+
56
+ ### 2. Warning
57
+
58
+ **Community Impact**: A violation through a single incident or series of actions.
59
+
60
+ **Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
61
+
62
+ ### 3. Temporary Ban
63
+
64
+ **Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
65
+
66
+ **Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
67
+
68
+ ### 4. Permanent Ban
69
+
70
+ **Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
71
+
72
+ **Consequence**: A permanent ban from any sort of public interaction within the community.
73
+
74
+ ## Attribution
75
+
76
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0,
77
+ available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
78
+
79
+ Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
80
+
81
+ [homepage]: https://www.contributor-covenant.org
82
+
83
+ For answers to common questions about this code of conduct, see the FAQ at
84
+ https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ # frozen_string_literal: true
2
+
3
+ source "https://rubygems.org"
4
+
5
+ # Specify your gem's dependencies in rb-snake.gemspec
6
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2023 Miguel Prada
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,37 @@
1
+ # Rb::Snake
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/rb/snake`. 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
+ Install the gem and add to the application's Gemfile by executing:
10
+
11
+ $ bundle add rb-snake
12
+
13
+ If bundler is not being used to manage dependencies, install the gem by executing:
14
+
15
+ $ gem install rb-snake
16
+
17
+ ## Usage
18
+
19
+ TODO: Write usage instructions here
20
+
21
+ ## Development
22
+
23
+ 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.
24
+
25
+ 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 the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
26
+
27
+ ## Contributing
28
+
29
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/rb-snake. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/[USERNAME]/rb-snake/blob/master/CODE_OF_CONDUCT.md).
30
+
31
+ ## License
32
+
33
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
34
+
35
+ ## Code of Conduct
36
+
37
+ Everyone interacting in the Rb::Snake project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/rb-snake/blob/master/CODE_OF_CONDUCT.md).
data/Rakefile ADDED
@@ -0,0 +1,12 @@
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
+ require "rubocop/rake_task"
9
+
10
+ RuboCop::RakeTask.new
11
+
12
+ task default: %i[spec rubocop]
@@ -0,0 +1,100 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Actions
4
+ def self.move_snake(state)
5
+ next_direction = state.curr_direction
6
+ next_position = calc_next_position(state)
7
+
8
+ if position_is_food? state, next_position
9
+ state = grow_snake_to state, next_position
10
+ generate_food state
11
+ elsif position_is_valid? state, next_position
12
+ move_snake_to state, next_position
13
+ else
14
+ end_game state
15
+ end
16
+ end
17
+
18
+ def self.change_direction(state, direction)
19
+ if next_direction_is_valid? state, direction
20
+ state.curr_direction = direction
21
+ else
22
+ puts "Invalid direction"
23
+ end
24
+
25
+ state
26
+ end
27
+
28
+ private
29
+
30
+ def self.generate_food(state)
31
+ new_food = Model::Food.new(rand(state.grid.rows), rand(state.grid.cols))
32
+ state.food = new_food
33
+ state
34
+ end
35
+
36
+ def self.calc_next_position(state)
37
+ curr_position = state.snake.positions.first
38
+ case state.curr_direction
39
+ when Model::Direction::UP
40
+ Model::Coord.new(curr_position.row - 1,
41
+ curr_position.col)
42
+ when Model::Direction::RIGHT
43
+ Model::Coord.new(curr_position.row,
44
+ curr_position.col + 1)
45
+ when Model::Direction::DOWN
46
+ Model::Coord.new(curr_position.row + 1,
47
+ curr_position.col)
48
+ when Model::Direction::LEFT
49
+ Model::Coord.new(curr_position.row,
50
+ curr_position.col - 1)
51
+ end
52
+ end
53
+
54
+ def self.position_is_food?(state, next_position)
55
+ (state.food.row == next_position.row) && (state.food.col == next_position.col)
56
+ end
57
+
58
+ def self.position_is_valid?(state, position)
59
+ # verificar que este en la grilla
60
+ is_invalid = ((position.row >= state.grid.rows) || (position.row < 0)) ||
61
+ ((position.col >= state.grid.cols) || (position.col < 0))
62
+
63
+ return false if is_invalid
64
+
65
+ # verificar que no este superponiendo a la serpiente
66
+ !(state.snake.positions.include? position)
67
+ end
68
+
69
+ def self.grow_snake_to(state, next_position)
70
+ state.snake.positions = [next_position] + state.snake.positions
71
+ state
72
+ end
73
+
74
+ def self.move_snake_to(state, next_position)
75
+ new_positions = [next_position] + state.snake.positions[0...-1]
76
+ state.snake.positions = new_positions
77
+
78
+ state
79
+ end
80
+
81
+ def self.end_game(state)
82
+ state.game_finished = true
83
+ state
84
+ end
85
+
86
+ def self.next_direction_is_valid?(state, direction)
87
+ case state.curr_direction
88
+ when Model::Direction::UP
89
+ direction != Model::Direction::DOWN
90
+ when Model::Direction::RIGHT
91
+ direction != Model::Direction::LEFT
92
+ when Model::Direction::DOWN
93
+ direction != Model::Direction::UP
94
+ when Model::Direction::LEFT
95
+ direction != Model::Direction::RIGHT
96
+ else
97
+ false
98
+ end
99
+ end
100
+ end
@@ -0,0 +1,42 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'view/ruby2d'
4
+ require_relative 'model/state'
5
+ require_relative 'actions/actions'
6
+
7
+ class App
8
+ def initialize
9
+ @state = Model.initial_state
10
+ end
11
+
12
+ def start
13
+ @view = View::Ruby2dView.new(self)
14
+ timer_thread = Thread.new { init_timer(@view) }
15
+ @view.start(@state)
16
+ timer_thread.join
17
+ end
18
+
19
+ def init_timer(view)
20
+ loop do
21
+ if @state.game_finished
22
+ puts 'Juego Finalizado'
23
+ puts "Puntaje: #{@state.snake.positions.length}"
24
+ break
25
+ end
26
+ @state = Actions::move_snake(@state)
27
+ view.render(@state)
28
+ sleep 0.1
29
+ end
30
+ end
31
+
32
+ def send_action(action, params)
33
+ new_state = Actions.send(action, @state, params)
34
+ if new_state.hash != @state
35
+ @state = new_state
36
+ @view.render(@state)
37
+ end
38
+ end
39
+ end
40
+
41
+ app = App.new
42
+ app.start
@@ -0,0 +1,37 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Representation of Game State
4
+ module Model
5
+ module Direction
6
+ UP = :up
7
+ RIGHT = :right
8
+ DOWN = :down
9
+ LEFT = :left
10
+ end
11
+
12
+ class Coord < Struct.new(:row, :col)
13
+ end
14
+
15
+ class Food < Coord
16
+ end
17
+
18
+ class Snake < Struct.new(:positions)
19
+ end
20
+
21
+ class Grid < Struct.new(:rows, :cols)
22
+ end
23
+
24
+ class State < Struct.new(:snake, :food, :grid, :curr_direction, :game_finished)
25
+ end
26
+
27
+ def self.initial_state
28
+ Model::State.new(
29
+ Model::Snake.new([Model::Coord.new(1, 1),
30
+ Model::Coord.new(0, 1)]),
31
+ Model::Food.new(4, 4),
32
+ Model::Grid.new(8, 12),
33
+ Direction::DOWN,
34
+ false
35
+ )
36
+ end
37
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module RbSnake
4
+ VERSION = "0.0.1"
5
+ end
@@ -0,0 +1,69 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'ruby2d'
4
+ module View
5
+ class Ruby2dView
6
+ def initialize(app)
7
+ @pixel_size = 50
8
+ @app = app
9
+ end
10
+
11
+ def start(state)
12
+ extend Ruby2D::DSL
13
+ set(title: 'Snake',
14
+ width: @pixel_size * state.grid.cols,
15
+ height: @pixel_size * state.grid.rows)
16
+ on :key_down do |event|
17
+ handle_key_event event
18
+ end
19
+ show
20
+ end
21
+
22
+ def render(state)
23
+ close if state.game_finished
24
+ render_food(state)
25
+ render_snake(state)
26
+ end
27
+
28
+ private
29
+
30
+ def render_food(state)
31
+ @food.remove if @food
32
+ extend Ruby2D::DSL
33
+ food = state.food
34
+ @food = Square.new(
35
+ x: food.col * @pixel_size,
36
+ y: food.row * @pixel_size,
37
+ size: @pixel_size,
38
+ color: 'yellow'
39
+ )
40
+ end
41
+
42
+ def render_snake(state)
43
+ @snake.each(&:remove) if @snake
44
+ extend Ruby2D::DSL
45
+ snake = state.snake
46
+ @snake = snake.positions.map do |pos|
47
+ Square.new(
48
+ x: pos.col * @pixel_size,
49
+ y: pos.row * @pixel_size,
50
+ size: @pixel_size,
51
+ color: 'green'
52
+ )
53
+ end
54
+ end
55
+
56
+ def handle_key_event(event)
57
+ case event.key
58
+ when "up"
59
+ @app.send_action(:change_direction, Model::Direction::UP)
60
+ when "down"
61
+ @app.send_action(:change_direction, Model::Direction::DOWN)
62
+ when "left"
63
+ @app.send_action(:change_direction, Model::Direction::LEFT)
64
+ when "right"
65
+ @app.send_action(:change_direction, Model::Direction::RIGHT)
66
+ end
67
+ end
68
+ end
69
+ end
data/lib/rb_snake.rb ADDED
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "rb_snake/version"
4
+
5
+ module RbSnake
6
+ class Error < StandardError; end
7
+ # Your code goes here...
8
+ end
data/rb-snake.gemspec ADDED
@@ -0,0 +1,41 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "lib/rb_snake/version"
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = "rb-snake"
7
+ spec.version = RbSnake::VERSION
8
+ spec.authors = ["Miguel Prada"]
9
+ spec.email = ["mapra99@gmail.com"]
10
+
11
+ spec.summary = "The classic snake game recreated using ruby"
12
+ spec.description = "The classic snake game recreated using ruby"
13
+ spec.homepage = "https://github.com/mapra99/rb-snake"
14
+ spec.license = "MIT"
15
+ spec.required_ruby_version = ">= 2.6.0"
16
+
17
+ spec.metadata["homepage_uri"] = spec.homepage
18
+ spec.metadata["source_code_uri"] = spec.homepage
19
+
20
+ # Specify which files should be added to the gem when it is released.
21
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
22
+ spec.files = Dir.chdir(__dir__) do
23
+ `git ls-files -z`.split("\x0").reject do |f|
24
+ (f == __FILE__) || f.match(%r{\A(?:(?:bin|test|spec|features)/|\.(?:git|travis|circleci)|appveyor)})
25
+ end
26
+ end
27
+ spec.bindir = "exe"
28
+ spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
29
+ spec.require_paths = ["lib"]
30
+
31
+ # Uncomment to register a new dependency of your gem
32
+ spec.add_dependency 'ruby2d', '~> 0.12.0'
33
+
34
+ spec.add_development_dependency 'rake', '~> 13.0'
35
+ spec.add_development_dependency 'rspec', '~> 3.0'
36
+ spec.add_development_dependency 'rubocop', '~> 1.21'
37
+ spec.add_development_dependency 'rubocop-rspec', '~> 2.16.0'
38
+
39
+ # For more information and examples about making a new gem, check out our
40
+ # guide at: https://bundler.io/guides/creating_gem.html
41
+ end
data/sig/rb/snake.rbs ADDED
@@ -0,0 +1,6 @@
1
+ module Rb
2
+ module Snake
3
+ VERSION: String
4
+ # See the writing guide of rbs: https://github.com/ruby/rbs#guides
5
+ end
6
+ end
metadata ADDED
@@ -0,0 +1,133 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rb-snake
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Miguel Prada
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2023-04-17 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: ruby2d
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 0.12.0
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 0.12.0
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '13.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '13.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '3.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '3.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rubocop
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '1.21'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '1.21'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rubocop-rspec
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: 2.16.0
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: 2.16.0
83
+ description: The classic snake game recreated using ruby
84
+ email:
85
+ - mapra99@gmail.com
86
+ executables: []
87
+ extensions: []
88
+ extra_rdoc_files: []
89
+ files:
90
+ - ".byebug_history"
91
+ - ".rspec"
92
+ - ".rubocop.yml"
93
+ - ".stickler.yml"
94
+ - CHANGELOG.md
95
+ - CODE_OF_CONDUCT.md
96
+ - Gemfile
97
+ - LICENSE.txt
98
+ - README.md
99
+ - Rakefile
100
+ - lib/rb_snake.rb
101
+ - lib/rb_snake/actions/actions.rb
102
+ - lib/rb_snake/app.rb
103
+ - lib/rb_snake/model/state.rb
104
+ - lib/rb_snake/version.rb
105
+ - lib/rb_snake/view/ruby2d.rb
106
+ - rb-snake.gemspec
107
+ - sig/rb/snake.rbs
108
+ homepage: https://github.com/mapra99/rb-snake
109
+ licenses:
110
+ - MIT
111
+ metadata:
112
+ homepage_uri: https://github.com/mapra99/rb-snake
113
+ source_code_uri: https://github.com/mapra99/rb-snake
114
+ post_install_message:
115
+ rdoc_options: []
116
+ require_paths:
117
+ - lib
118
+ required_ruby_version: !ruby/object:Gem::Requirement
119
+ requirements:
120
+ - - ">="
121
+ - !ruby/object:Gem::Version
122
+ version: 2.6.0
123
+ required_rubygems_version: !ruby/object:Gem::Requirement
124
+ requirements:
125
+ - - ">="
126
+ - !ruby/object:Gem::Version
127
+ version: '0'
128
+ requirements: []
129
+ rubygems_version: 3.3.7
130
+ signing_key:
131
+ specification_version: 4
132
+ summary: The classic snake game recreated using ruby
133
+ test_files: []