Coder Social home page Coder Social logo

Comments (14)

rmcmk avatar rmcmk commented on May 27, 2024

Diagonal support was never added to the simple path finder. It was one of the issues we didn't get to.

from apollo.

lare96 avatar lare96 commented on May 27, 2024

What was the issue preventing you guys from adding it?

from apollo.

Major- avatar Major- commented on May 27, 2024

There was nothing preventing us from adding support for diagonal movement, we just never got round to it.

from apollo.

 avatar commented on May 27, 2024

Yeah, I finished it :) A slightly different version.

@Major- Mind add me on skype? artembatutin

from apollo.

lare96 avatar lare96 commented on May 27, 2024

Artem if you've finished it maybe you should submit a pull request.

from apollo.

Major- avatar Major- commented on May 27, 2024

@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.

 avatar commented on May 27, 2024

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.

MitchZinck avatar MitchZinck commented on May 27, 2024

Fork it and do a pull request then?

from apollo.

 avatar commented on May 27, 2024

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.

rmcmk avatar rmcmk commented on May 27, 2024

...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.

 avatar commented on May 27, 2024

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.

rmcmk avatar rmcmk commented on May 27, 2024

permalink: https://gist.github.com/ryleykimmel/9b9ae062656000da3e22#file-simplepathfinder-java

from apollo.

lare96 avatar lare96 commented on May 27, 2024

@ryleykimmel is that okay to be merged into the repo? Or in other words, has it been tested?

from apollo.

Major- avatar Major- commented on May 27, 2024

Lots of repetition in that code, I'd like to find a way to reduce that before adding it.

from apollo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.