Git Product home page Git Product logo

Comments (8)

prettymuchbryce avatar prettymuchbryce commented on May 21, 2024

Hey CubixSystem. Thanks for opening an issue. Let me see if I can create a test which reproduces this issue. The start and end points you provided are helpful information. What size is your map ? Are there any other settings such as tile costs ?

Can you provide the version of EasyStar you are using?

from easystarjs.

CubixSystem avatar CubixSystem commented on May 21, 2024

Thanks for your great work and fast response.
I am very impressed by possibility of setting tile costs!

version is 0.2.1, from npm
In examples above I use this code:

  var EasyStar = require('easystarjs');
  var easystar = new EasyStar.js();
  var grid = [];
  for (var i = 0; i < 20; i++) {
    grid[i] = [];
    for (var j = 0; j < 20; j++) {
      grid[i][j] = 0;
    }
  }
  easystar.setGrid(grid);
  easystar.setAcceptableTiles([0]);
  easystar.enableDiagonals();

Similar to #16, without easystar.enableDiagonals(); all works fine.

from easystarjs.

CubixSystem avatar CubixSystem commented on May 21, 2024

Order of points is very important:
Start point (2, 2)
End point (4, 4)
test

Start point (4,4)
End point (2, 2)
test2

from easystarjs.

prettymuchbryce avatar prettymuchbryce commented on May 21, 2024

Hey CubixSystem. Thanks for all of the details you provided. Can you let me know if the latest commit fixes your issue ?

from easystarjs.

CubixSystem avatar CubixSystem commented on May 21, 2024

@prettymuchbryce still the same:
test2

from easystarjs.

prettymuchbryce avatar prettymuchbryce commented on May 21, 2024

Are you using 0.2.2 from npm ?
Is the 4,4 to 2,2 search working as expected now ?
Can you provide me with the start/end coordinates of the 3 searches being performed on the grid from the above image ?

from easystarjs.

CubixSystem avatar CubixSystem commented on May 21, 2024

It was problem on my side, I update to 0.2.2 but forget to update client-packed scripts.
Now It all works as expected!
Thank you! 👍
I continue my tests and let you know If I met any other issues.

from easystarjs.

prettymuchbryce avatar prettymuchbryce commented on May 21, 2024

No problem. I'm happy to help. Please feel free to open another issue if you experience any other problems. Good luck with your game. It looks cool. 😎

from easystarjs.

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.