astrid 0.0.1 → 0.0.2

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: 5805f0aabcdedf0d3f848c806e3dcd84c11108ec
4
- data.tar.gz: 8122dbbd6d0a2f111154e65f75eb36a5cd72eaca
3
+ metadata.gz: c9e76f4cce14130c0457c5529eab352bbdd0dbf4
4
+ data.tar.gz: a8ae83859545bd3579a38f30bd28cde0d7fe7c1a
5
5
  SHA512:
6
- metadata.gz: 72ec33b083718e395523d2dc0a8c9e7268d24d05f1c27ffc5c845f4980e7d689226cf09a75b5f107d55b10d292fa24bda70640fd8468170ebb6366941fc89fcf
7
- data.tar.gz: 1e17a34f968e762bace8f055800f443a209a452204bd4ffe69c7ebada0677c8a8b53643e999ffdddc9ad2d137307885970dbd00c3a33d95f484686312ece9c4d
6
+ metadata.gz: 4c95fa3050fb6380efc4f2e3dbb091c12e3a2dee3dd8007159de4f3be48d221466292d1691a0ac741eaf94aad02a86224afbfdfa13b084507b6ded229ba327e1
7
+ data.tar.gz: 2baeb5a246c75c4a1b96a48aa64f2a5b8b1ec0dce0b164013e2052fbcd6f7684bc89b57d0a665711bc424c2806e8d06a72314921ac5a08f8169ee18ba204763b
data/.rspec ADDED
@@ -0,0 +1 @@
1
+ --color
@@ -0,0 +1,3 @@
1
+ machine:
2
+ ruby:
3
+ version: 2.2.2
@@ -1,6 +1,6 @@
1
1
  require 'astrid/heuristics/manhattan'
2
2
 
3
- module Pathfinder
3
+ module Astrid
4
4
  module Finders
5
5
  class AStar
6
6
 
@@ -17,8 +17,6 @@ module Pathfinder
17
17
  node
18
18
  end
19
19
 
20
- # look at
21
- # https://github.com/qiao/PathFinding.js/blob/master/src/finders/AStarFinder.js
22
20
  # A*
23
21
  # requires x & y
24
22
  # node = g, f, h, x, y, opened, walkable, closed, parent
@@ -1,4 +1,4 @@
1
- module Pathfinder
1
+ module Astrid
2
2
  module Heuristics
3
3
  class Manhattan
4
4
 
@@ -1,3 +1,3 @@
1
1
  module Astrid
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -1,10 +1,8 @@
1
1
  require 'spec_helper'
2
2
  require 'astrid/finders/a_star'
3
3
 
4
- describe 'Pathfinder::Finders::AStar' do
5
-
6
-
7
- let(:a_star) { Pathfinder::Finders::AStar.new }
4
+ describe Astrid::Finders::AStar do
5
+ let(:a_star) { Astrid::Finders::AStar.new }
8
6
 
9
7
  describe "#grid" do
10
8
  describe "#visited_positions" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: astrid
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - JHawk
@@ -46,11 +46,13 @@ extensions: []
46
46
  extra_rdoc_files: []
47
47
  files:
48
48
  - ".gitignore"
49
+ - ".rspec"
49
50
  - Gemfile
50
51
  - LICENSE.txt
51
52
  - README.md
52
53
  - Rakefile
53
54
  - astrid.gemspec
55
+ - circle.yml
54
56
  - lib/astrid.rb
55
57
  - lib/astrid/finders/a_star.rb
56
58
  - lib/astrid/heuristics/manhattan.rb