Skip to content

Commit

Permalink
Remove trailing spaces.
Browse files Browse the repository at this point in the history
  • Loading branch information
pyrooka committed Oct 11, 2017
1 parent 8610587 commit 35803df
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ before_install:
install:
- sudo apt-get install -qq g++-4.8

script:
- g++-4.8 -std=c++11 -Wall -Wextra -pedantic source/AStar.cpp main.cpp -o app
script:
- g++-4.8 -std=c++11 -Wall -Wextra -pedantic source/AStar.cpp main.cpp -o app
- ./app
4 changes: 2 additions & 2 deletions ReadMe.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ int main()
// You can use a few heuristics : manhattan, euclidean or octagonal.
generator.setHeuristic(AStar::Heuristic::euclidean);
generator.setDiagonalMovement(true);

std::cout << "Generate path ... \n";
// This method returns vector of coordinates from target to source.
auto path = generator.findPath({0, 0}, {20, 20});

for(auto& coordinate : path) {
std::cout << coordinate.x << " " << coordinate.y << "\n";
}
Expand Down
4 changes: 2 additions & 2 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ int main()
generator.setWorldSize({25, 25});
generator.setHeuristic(AStar::Heuristic::euclidean);
generator.setDiagonalMovement(true);

std::cout << "Generate path ... \n";
auto path = generator.findPath({0, 0}, {20, 20});

for(auto& coordinate : path) {
std::cout << coordinate.x << " " << coordinate.y << "\n";
}
Expand Down
2 changes: 1 addition & 1 deletion source/AStar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ AStar::Generator::Generator()
{
setDiagonalMovement(false);
setHeuristic(&Heuristic::manhattan);
direction = {
direction = {
{ 0, 1 }, { 1, 0 }, { 0, -1 }, { -1, 0 },
{ -1, -1 }, { 1, 1 }, { -1, 1 }, { 1, -1 }
};
Expand Down
2 changes: 1 addition & 1 deletion source/AStar.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ namespace AStar
void addCollision(Vec2i coordinates_);
void removeCollision(Vec2i coordinates_);
void clearCollisions();

private:
HeuristicFunction heuristic;
CoordinateList direction, walls;
Expand Down

0 comments on commit 35803df

Please sign in to comment.