maze_crosser 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +9 -0
- data/.travis.yml +6 -0
- data/Gemfile +6 -0
- data/LICENSE.txt +21 -0
- data/README.md +62 -0
- data/Rakefile +10 -0
- data/bin/load +7 -0
- data/bin/setup +8 -0
- data/etc/general_information.md +20 -0
- data/lib/maze_crosser/algorithms/recursive_algorithm_runner.rb +87 -0
- data/lib/maze_crosser/basic_grid_validator.rb +35 -0
- data/lib/maze_crosser/cache_provider.rb +31 -0
- data/lib/maze_crosser/file_checker.rb +26 -0
- data/lib/maze_crosser/file_maze_definer.rb +14 -0
- data/lib/maze_crosser/helpers/file_helper.rb +8 -0
- data/lib/maze_crosser/helpers/presentation_helper.rb +9 -0
- data/lib/maze_crosser/maze.rb +61 -0
- data/lib/maze_crosser/maze_crosser_runner.rb +50 -0
- data/lib/maze_crosser/maze_solver.rb +24 -0
- data/lib/maze_crosser/version.rb +3 -0
- data/lib/maze_crosser.rb +6 -0
- data/maze_crosser.gemspec +37 -0
- metadata +137 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 46f547e36865ec4a97fd4277bd862540d00f8a8e
|
4
|
+
data.tar.gz: 6b95a2930232b9cc3c5ac22c8154c7047cfa2194
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: e3dbdf0f5b40dc2bd9153147834f69c8b5acafa48bb32a07489842c666865a921fc23944184ea155edf857c932f23d7586c45e948a6fbd499a07c77941dbf778
|
7
|
+
data.tar.gz: 1d16f2fb62751ab13bf96c44f251cecf516b54a711e4c657d0e17de7bb090060a9dcc80a10af2762b402d7f28f44e556673600306f63f9ff62c1e82be88cf135
|
data/.gitignore
ADDED
data/.travis.yml
ADDED
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2017 Kiriakos Velissariou
|
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,62 @@
|
|
1
|
+
# maze_crosser
|
2
|
+
|
3
|
+
[![Build Status](https://travis-ci.org/kiriakosv/maze_crosser.svg?branch=master)](https://travis-ci.org/kiriakosv/maze_crosser)
|
4
|
+
[![Coverage Status](https://coveralls.io/repos/github/kiriakosv/maze_crosser/badge.svg)](https://coveralls.io/github/kiriakosv/maze_crosser)
|
5
|
+
[![Maintainability](https://api.codeclimate.com/v1/badges/ade071d041026dd0928d/maintainability)](https://codeclimate.com/github/kiriakosv/maze_crosser/maintainability)
|
6
|
+
|
7
|
+
A simple 2D maze solving application.
|
8
|
+
|
9
|
+
## Installation
|
10
|
+
|
11
|
+
Add this line to your application's Gemfile:
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
gem 'maze_crosser'
|
15
|
+
```
|
16
|
+
|
17
|
+
And then execute:
|
18
|
+
|
19
|
+
$ bundle
|
20
|
+
|
21
|
+
Or install it yourself as:
|
22
|
+
|
23
|
+
$ gem install maze_crosser
|
24
|
+
|
25
|
+
## Usage
|
26
|
+
|
27
|
+
After installing the gem, open an irb prompt and type
|
28
|
+
```ruby
|
29
|
+
require 'maze_crosser'
|
30
|
+
```
|
31
|
+
You are now provided with two instance variables, @maze_crosser_runner and @cache_provider. You can use these as follows:
|
32
|
+
```ruby
|
33
|
+
# Empty the cache
|
34
|
+
@cache_provider.empty!
|
35
|
+
|
36
|
+
# Provide a path to a grid file and a solving algorithm. Currently, the only
|
37
|
+
# algorithm option is 'recursive' (set as default).
|
38
|
+
@maze_crosser_runner.run('path_to_file')
|
39
|
+
```
|
40
|
+
### Grid file
|
41
|
+
The grid file should have a .txt extension and follow the format below:
|
42
|
+
```
|
43
|
+
___SX
|
44
|
+
XXX_X
|
45
|
+
G___X
|
46
|
+
XX_XX
|
47
|
+
```
|
48
|
+
where:
|
49
|
+
* G: End goal
|
50
|
+
* S: Starting poing
|
51
|
+
* X: Blocked point
|
52
|
+
* _: Free point
|
53
|
+
|
54
|
+
## Development
|
55
|
+
|
56
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/load` for an interactive prompt that will allow you to experiment.
|
57
|
+
|
58
|
+
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).
|
59
|
+
|
60
|
+
## License
|
61
|
+
|
62
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
data/Rakefile
ADDED
data/bin/load
ADDED
data/bin/setup
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
# General information
|
2
|
+
|
3
|
+
## Development process
|
4
|
+
|
5
|
+
I tried to follow a TDD approach for the most part. This was not always easy,
|
6
|
+
especially at the beginning, since the general structure of the application
|
7
|
+
was under constant change.
|
8
|
+
|
9
|
+
## External sources
|
10
|
+
|
11
|
+
This application was created as a gem. The initial setup, as well as the gem
|
12
|
+
release was done using bundler. Every other dependency is listed in the gemspec
|
13
|
+
file.
|
14
|
+
|
15
|
+
The implementation of the recursive algorithm is based on information I
|
16
|
+
found [here](https://www.cs.bu.edu/teaching/alg/maze/).
|
17
|
+
|
18
|
+
## Final notes
|
19
|
+
The initial gem name was Mazer. Unfortunately, the name was already taken by
|
20
|
+
another gem.
|
@@ -0,0 +1,87 @@
|
|
1
|
+
module MazeCrosser
|
2
|
+
# Class responsible for applying resursive algorithm to a maze.
|
3
|
+
#
|
4
|
+
# recursive_algorithm = RecursiveAlgorithmRunner.new(maze)
|
5
|
+
#
|
6
|
+
# Run the algorithm
|
7
|
+
# recursive_algorithm.run
|
8
|
+
class RecursiveAlgorithmRunner
|
9
|
+
def initialize(maze)
|
10
|
+
@maze = maze
|
11
|
+
@path = []
|
12
|
+
end
|
13
|
+
|
14
|
+
def run
|
15
|
+
find_path(@maze.start)
|
16
|
+
@path
|
17
|
+
end
|
18
|
+
|
19
|
+
private
|
20
|
+
|
21
|
+
# This method is based on the recursive algorithm described in:
|
22
|
+
# https://www.cs.bu.edu/teaching/alg/maze/
|
23
|
+
# PROS: Easy to understand, simple implementation
|
24
|
+
# CONS: Does not necessarily find the shortest path
|
25
|
+
def find_path(coords)
|
26
|
+
return false if dead_end?(coords)
|
27
|
+
|
28
|
+
if goal_found?(coords)
|
29
|
+
@path << coords
|
30
|
+
return true
|
31
|
+
end
|
32
|
+
|
33
|
+
# This cell may actually be part of the solution, let's check
|
34
|
+
@path << coords
|
35
|
+
return true if valid_move_available?(coords)
|
36
|
+
|
37
|
+
# Since we got here, this cell can't be part of the solution
|
38
|
+
@path.pop
|
39
|
+
false
|
40
|
+
end
|
41
|
+
|
42
|
+
def already_visited?(coords)
|
43
|
+
@path.include?(coords)
|
44
|
+
end
|
45
|
+
|
46
|
+
def out_of_bounds?(coords)
|
47
|
+
!@maze.inside_grid?(coords)
|
48
|
+
end
|
49
|
+
|
50
|
+
def blocked?(coords)
|
51
|
+
@maze.blocked_cell?(coords)
|
52
|
+
end
|
53
|
+
|
54
|
+
def dead_end?(coords)
|
55
|
+
out_of_bounds?(coords) ||
|
56
|
+
blocked?(coords) ||
|
57
|
+
already_visited?(coords)
|
58
|
+
end
|
59
|
+
|
60
|
+
def goal_found?(coords)
|
61
|
+
coords == @maze.goal
|
62
|
+
end
|
63
|
+
|
64
|
+
def valid_move_available?(coords)
|
65
|
+
return true if move_north(coords) ||
|
66
|
+
move_south(coords) ||
|
67
|
+
move_east(coords) ||
|
68
|
+
move_west(coords)
|
69
|
+
end
|
70
|
+
|
71
|
+
def move_north(coords)
|
72
|
+
find_path([coords[0] - 1, coords[1]])
|
73
|
+
end
|
74
|
+
|
75
|
+
def move_south(coords)
|
76
|
+
find_path([coords[0] + 1, coords[1]])
|
77
|
+
end
|
78
|
+
|
79
|
+
def move_east(coords)
|
80
|
+
find_path([coords[0], coords[1] + 1])
|
81
|
+
end
|
82
|
+
|
83
|
+
def move_west(coords)
|
84
|
+
find_path([coords[0], coords[1] - 1])
|
85
|
+
end
|
86
|
+
end
|
87
|
+
end
|
@@ -0,0 +1,35 @@
|
|
1
|
+
module MazeCrosser
|
2
|
+
# Module responsible for aplying basic maze validations.
|
3
|
+
module BasicGridValidator
|
4
|
+
ALLOWED_CHARACTERS = {
|
5
|
+
empty: '_',
|
6
|
+
start: 'S',
|
7
|
+
goal: 'G',
|
8
|
+
blocked: 'X'
|
9
|
+
}.freeze
|
10
|
+
|
11
|
+
def valid?(maze)
|
12
|
+
only_valid_characters?(maze) && \
|
13
|
+
one_start_and_one_end?(maze) && \
|
14
|
+
rectangular?(maze)
|
15
|
+
end
|
16
|
+
|
17
|
+
private
|
18
|
+
|
19
|
+
def only_valid_characters?(maze)
|
20
|
+
maze.flatten.reject { |c| ALLOWED_CHARACTERS.values.include? c }.empty?
|
21
|
+
end
|
22
|
+
|
23
|
+
def one_start_and_one_end?(maze)
|
24
|
+
flat_maze = maze.flatten
|
25
|
+
|
26
|
+
flat_maze.count { |c| c == ALLOWED_CHARACTERS[:goal] } == 1 &&
|
27
|
+
flat_maze.count { |c| c == ALLOWED_CHARACTERS[:start] } == 1
|
28
|
+
end
|
29
|
+
|
30
|
+
def rectangular?(maze)
|
31
|
+
row_size = maze[0].size
|
32
|
+
maze.select { |row| row.size == row_size }.size == maze.size
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
@@ -0,0 +1,31 @@
|
|
1
|
+
module MazeCrosser
|
2
|
+
# Class responsible for maintaining a cache of already solved mazes.
|
3
|
+
#
|
4
|
+
# cache_provider = CacheProvider.new
|
5
|
+
#
|
6
|
+
# Add solution to cache
|
7
|
+
# cache_provider.add(grid, solution)
|
8
|
+
#
|
9
|
+
# Get a solution
|
10
|
+
# cache_provider.get_solution(grid)
|
11
|
+
#
|
12
|
+
# Empty cache
|
13
|
+
# cache_provider.empty_cache!
|
14
|
+
class CacheProvider
|
15
|
+
def initialize(solutions = {})
|
16
|
+
@solutions = solutions
|
17
|
+
end
|
18
|
+
|
19
|
+
def add(grid, solution)
|
20
|
+
@solutions[grid] = solution
|
21
|
+
end
|
22
|
+
|
23
|
+
def get_solution(grid)
|
24
|
+
@solutions[grid]
|
25
|
+
end
|
26
|
+
|
27
|
+
def empty_cache!
|
28
|
+
@solutions = {}
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
module MazeCrosser
|
2
|
+
# Module containing a file validator.
|
3
|
+
module FileChecker
|
4
|
+
ALLOWED_EXTENSIONS = %w[txt].freeze
|
5
|
+
|
6
|
+
def check(file)
|
7
|
+
raise ArgumentError, 'Invalid file' unless valid_file? file
|
8
|
+
|
9
|
+
file
|
10
|
+
end
|
11
|
+
|
12
|
+
private
|
13
|
+
|
14
|
+
def valid_file?(file)
|
15
|
+
file_exists?(file) && allowed_extension?(file)
|
16
|
+
end
|
17
|
+
|
18
|
+
def file_exists?(file)
|
19
|
+
File.file? file
|
20
|
+
end
|
21
|
+
|
22
|
+
def allowed_extension?(file)
|
23
|
+
file =~ /^.+.#{ALLOWED_EXTENSIONS.join('|')}/
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
require_relative 'file_checker'
|
2
|
+
require_relative 'helpers/file_helper'
|
3
|
+
|
4
|
+
module MazeCrosser
|
5
|
+
# Module that contains a utilities for defining a maze grid from a file.
|
6
|
+
module FileMazeDefiner
|
7
|
+
include MazeCrosser::FileChecker
|
8
|
+
|
9
|
+
def define(file)
|
10
|
+
file = check(file)
|
11
|
+
MazeCrosser::FileHelper.file_to_array(file)
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,61 @@
|
|
1
|
+
require_relative 'basic_grid_validator'
|
2
|
+
|
3
|
+
module MazeCrosser
|
4
|
+
# Class responsible for representing a maze.
|
5
|
+
#
|
6
|
+
# maze = Maze.new(grid)
|
7
|
+
#
|
8
|
+
# Check if the coordinates are inside the grid
|
9
|
+
# maze.inside_grid? [4, 2]
|
10
|
+
#
|
11
|
+
# Check if a cell is blocked
|
12
|
+
# maze.blocked_cell? [4, 2]
|
13
|
+
class Maze
|
14
|
+
include MazeCrosser::BasicGridValidator
|
15
|
+
|
16
|
+
attr_reader :grid,
|
17
|
+
:number_of_rows,
|
18
|
+
:number_of_columns,
|
19
|
+
:start,
|
20
|
+
:goal
|
21
|
+
|
22
|
+
def initialize(grid)
|
23
|
+
raise ArgumentError, 'Invalid maze' unless valid? grid
|
24
|
+
|
25
|
+
@grid = grid
|
26
|
+
set_dimensions
|
27
|
+
set_start
|
28
|
+
set_goal
|
29
|
+
end
|
30
|
+
|
31
|
+
def inside_grid?(coordinates)
|
32
|
+
coordinates[0].between?(0, @number_of_rows - 1) && \
|
33
|
+
coordinates[1].between?(0, @number_of_columns - 1)
|
34
|
+
end
|
35
|
+
|
36
|
+
def blocked_cell?(coordinates)
|
37
|
+
@grid[coordinates[0]][coordinates[1]] == ALLOWED_CHARACTERS[:blocked]
|
38
|
+
end
|
39
|
+
|
40
|
+
private
|
41
|
+
|
42
|
+
def set_dimensions
|
43
|
+
@number_of_rows = @grid.size
|
44
|
+
@number_of_columns = @grid[0].size
|
45
|
+
end
|
46
|
+
|
47
|
+
def set_start
|
48
|
+
@start = [
|
49
|
+
r = @grid.index { |row| row.include? ALLOWED_CHARACTERS[:start] },
|
50
|
+
@grid[r].index(ALLOWED_CHARACTERS[:start])
|
51
|
+
]
|
52
|
+
end
|
53
|
+
|
54
|
+
def set_goal
|
55
|
+
@goal = [
|
56
|
+
r = @grid.index { |row| row.include? ALLOWED_CHARACTERS[:goal] },
|
57
|
+
@grid[r].index(ALLOWED_CHARACTERS[:goal])
|
58
|
+
]
|
59
|
+
end
|
60
|
+
end
|
61
|
+
end
|
@@ -0,0 +1,50 @@
|
|
1
|
+
require 'require_all'
|
2
|
+
require_relative 'file_maze_definer'
|
3
|
+
require_relative 'maze_solver'
|
4
|
+
require_relative 'helpers/presentation_helper'
|
5
|
+
require_relative 'maze'
|
6
|
+
require_rel 'algorithms'
|
7
|
+
|
8
|
+
module MazeCrosser
|
9
|
+
# Class responsible for running the application.
|
10
|
+
#
|
11
|
+
# maze_crosser_runner = MazerRunner.new
|
12
|
+
# maze_crosser_runner.run(file, algorithm)
|
13
|
+
class MazeCrosserRunner
|
14
|
+
include MazeCrosser::PresentationHelper
|
15
|
+
include MazeCrosser::FileMazeDefiner
|
16
|
+
|
17
|
+
def initialize(cache_provider)
|
18
|
+
@cache_provider = cache_provider
|
19
|
+
end
|
20
|
+
|
21
|
+
def run(file = nil, algorithm = 'recursive')
|
22
|
+
# When an additional grid import method is implemented (e.g. via CLI)
|
23
|
+
# the following should be done:
|
24
|
+
# 1) The line that raises ArgumentError should be removed
|
25
|
+
# 2) Grid assignment should be moved to a private method
|
26
|
+
raise ArgumentError, 'Please provide a file' unless file
|
27
|
+
|
28
|
+
grid = define(file) if file
|
29
|
+
|
30
|
+
maze = MazeCrosser::Maze.new(grid)
|
31
|
+
algorithm = load_algorithm(algorithm, maze)
|
32
|
+
present_solution(MazeSolver.new(maze, algorithm, @cache_provider).solve)
|
33
|
+
end
|
34
|
+
|
35
|
+
private
|
36
|
+
|
37
|
+
def load_algorithm(algorithm, maze)
|
38
|
+
# An alternative to this implementation would be to use metaprogramming
|
39
|
+
# and dynamically initialize the correct algorithm runner. Having said
|
40
|
+
# that, such an approach would be unsafe since it would involve the use
|
41
|
+
# of eval.
|
42
|
+
case algorithm
|
43
|
+
when 'recursive'
|
44
|
+
RecursiveAlgorithmRunner.new(maze)
|
45
|
+
else
|
46
|
+
raise ArgumentError, 'The algorithm does not exist.'
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
@@ -0,0 +1,24 @@
|
|
1
|
+
module MazeCrosser
|
2
|
+
# Class responsible for solving a maze, by using a given algorithm or a
|
3
|
+
# cache.
|
4
|
+
#
|
5
|
+
# maze_solver = MazeSolver.new(maze, algorithm, cache_provider)
|
6
|
+
# maze_solver.solve
|
7
|
+
class MazeSolver
|
8
|
+
def initialize(maze, algorithm, cache_provider)
|
9
|
+
@algorithm = algorithm
|
10
|
+
@cache_provider = cache_provider
|
11
|
+
@maze = maze
|
12
|
+
end
|
13
|
+
|
14
|
+
def solve
|
15
|
+
if @cache_provider.get_solution(@maze.grid)
|
16
|
+
return @cache_provider.get_solution(@maze.grid)
|
17
|
+
end
|
18
|
+
|
19
|
+
solution = @algorithm.run
|
20
|
+
@cache_provider.add(@maze.grid, solution)
|
21
|
+
solution
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
data/lib/maze_crosser.rb
ADDED
@@ -0,0 +1,37 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path("../lib", __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require "maze_crosser/version"
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "maze_crosser"
|
8
|
+
spec.version = MazeCrosser::VERSION
|
9
|
+
spec.authors = ["Kiriakos Velissariou"]
|
10
|
+
spec.email = ["kir.velissariou@gmail.com"]
|
11
|
+
|
12
|
+
spec.summary = %q{A simple 2d maze solving application}
|
13
|
+
spec.homepage = "https://github.com/kiriakosv/maze_crosser"
|
14
|
+
spec.license = "MIT"
|
15
|
+
|
16
|
+
# Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
|
17
|
+
# to allow pushing to a single host or delete this section to allow pushing to any host.
|
18
|
+
if spec.respond_to?(:metadata)
|
19
|
+
spec.metadata["allowed_push_host"] = "https://rubygems.org/"
|
20
|
+
else
|
21
|
+
raise "RubyGems 2.0 or newer is required to protect against " \
|
22
|
+
"public gem pushes."
|
23
|
+
end
|
24
|
+
|
25
|
+
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
26
|
+
f.match(%r{^(test|spec|features)/})
|
27
|
+
end
|
28
|
+
spec.bindir = "exe"
|
29
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
30
|
+
spec.require_paths = ["lib"]
|
31
|
+
|
32
|
+
spec.add_development_dependency "bundler", "~> 1.15"
|
33
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
34
|
+
spec.add_development_dependency "minitest", "~> 5.0"
|
35
|
+
spec.add_development_dependency "coveralls", "~> 0.8"
|
36
|
+
spec.add_development_dependency "require_all", "~> 1.4"
|
37
|
+
end
|
metadata
ADDED
@@ -0,0 +1,137 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: maze_crosser
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Kiriakos Velissariou
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2017-11-02 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.15'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.15'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '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: '10.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: minitest
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '5.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '5.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: coveralls
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0.8'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0.8'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: require_all
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '1.4'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '1.4'
|
83
|
+
description:
|
84
|
+
email:
|
85
|
+
- kir.velissariou@gmail.com
|
86
|
+
executables: []
|
87
|
+
extensions: []
|
88
|
+
extra_rdoc_files: []
|
89
|
+
files:
|
90
|
+
- ".gitignore"
|
91
|
+
- ".travis.yml"
|
92
|
+
- Gemfile
|
93
|
+
- LICENSE.txt
|
94
|
+
- README.md
|
95
|
+
- Rakefile
|
96
|
+
- bin/load
|
97
|
+
- bin/setup
|
98
|
+
- etc/general_information.md
|
99
|
+
- lib/maze_crosser.rb
|
100
|
+
- lib/maze_crosser/algorithms/recursive_algorithm_runner.rb
|
101
|
+
- lib/maze_crosser/basic_grid_validator.rb
|
102
|
+
- lib/maze_crosser/cache_provider.rb
|
103
|
+
- lib/maze_crosser/file_checker.rb
|
104
|
+
- lib/maze_crosser/file_maze_definer.rb
|
105
|
+
- lib/maze_crosser/helpers/file_helper.rb
|
106
|
+
- lib/maze_crosser/helpers/presentation_helper.rb
|
107
|
+
- lib/maze_crosser/maze.rb
|
108
|
+
- lib/maze_crosser/maze_crosser_runner.rb
|
109
|
+
- lib/maze_crosser/maze_solver.rb
|
110
|
+
- lib/maze_crosser/version.rb
|
111
|
+
- maze_crosser.gemspec
|
112
|
+
homepage: https://github.com/kiriakosv/maze_crosser
|
113
|
+
licenses:
|
114
|
+
- MIT
|
115
|
+
metadata:
|
116
|
+
allowed_push_host: https://rubygems.org/
|
117
|
+
post_install_message:
|
118
|
+
rdoc_options: []
|
119
|
+
require_paths:
|
120
|
+
- lib
|
121
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
122
|
+
requirements:
|
123
|
+
- - ">="
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: '0'
|
126
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
127
|
+
requirements:
|
128
|
+
- - ">="
|
129
|
+
- !ruby/object:Gem::Version
|
130
|
+
version: '0'
|
131
|
+
requirements: []
|
132
|
+
rubyforge_project:
|
133
|
+
rubygems_version: 2.6.11
|
134
|
+
signing_key:
|
135
|
+
specification_version: 4
|
136
|
+
summary: A simple 2d maze solving application
|
137
|
+
test_files: []
|