Comments (14)
Diagonal support was never added to the simple path finder. It was one of the issues we didn't get to.
from apollo.
What was the issue preventing you guys from adding it?
from apollo.
There was nothing preventing us from adding support for diagonal movement, we just never got round to it.
from apollo.
Yeah, I finished it :) A slightly different version.
@Major- Mind add me on skype? artembatutin
from apollo.
Artem if you've finished it maybe you should submit a pull request.
from apollo.
@artembatutin I don't really use skype, but you can contact me on r-s, or do what lare said and open a pull request :-)
from apollo.
You do know that I'm banned on r-s? I would still love to share this last work I did. I don't have any forks. And the implementation is quite different too.
from apollo.
Fork it and do a pull request then?
from apollo.
http://pastebin.com/anSQDekr You don't have to jump from one method to another as you did before. Supports diagonal moves. Returns the path once an obstacle is found.
from apollo.
...the method propagation is ideal for readability (and being able to understand what is going on) finding horizontal and vertical moves, there isn't a single method name which can appropriately describe both.
Also why would you remove the paste?
from apollo.
It was set for 2 days. I'll post it back once I get on my computer for a bigger amount of time. What I did is that I've created one loop which would end if the pathfinder reached its destination. And while in progress, it would first prioritize diagonal moves, it would still finish the horizontal and vertical moves after. Once a path is blocked(can skip diagonal moves for that), it would break the loop and return what it did gathered.
from apollo.
permalink: https://gist.github.com/ryleykimmel/9b9ae062656000da3e22#file-simplepathfinder-java
from apollo.
@ryleykimmel is that okay to be merged into the repo? Or in other words, has it been tested?
from apollo.
Lots of repetition in that code, I'd like to find a way to reduce that before adding it.
from apollo.
Related Issues (20)
- Port the Ruby Herblore plugin to Kotlin HOT 3
- Improve lookup algorithm in areas plugin HOT 2
- Expand the "Introduction to apollo plugins" documentation
- Improve plugin documentation HOT 2
- Investigate if runtime plugin reloading during development is feasible
- Plugin API ergonomics HOT 8
- Door plugin lacks support for gates, curtains, etc HOT 4
- Command to get another player's position HOT 2
- Command to teleport to another player
- Add magic plugin for kotlin HOT 2
- Add support for providing configuration to player persistence implementations HOT 1
- Fix message releasing (netty 4) HOT 7
- Update from Java 8 to Java 11
- Slack link not working HOT 1
- Update README.md file HOT 3
- [Tracking] OSRS support HOT 2
- Support loading and analyzing existing gamepacks HOT 2
- Redundant abstract modifier in SynchronizationBlock HOT 1
- Get bytes when no transformation reads bytes reversed
- TODO comments
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from apollo.