-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Greatly improved performances for canvas of big dimensions. Improved the visuals when scrolling (the header and palette are always visible). The h value coefficient is now customizable. The movement's cost is now customizable. Added italian translation to the page. Added settings documentation. Fixed many bugs.
- Loading branch information
Showing
15 changed files
with
625 additions
and
121 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
## Settings documentation | ||
|
||
### Settings explaination | ||
+ Rows: number of rows of the canvas. Min 1 - Max 99 | ||
+ Columns: number of columns of the canvas. Min 1 - Max 99 | ||
+ Cell size: size of the cells of the canvas. Min 6 - Max 99 | ||
+ Framerate: framerate of the animation. An higher value will make the animation faster. Min 0.1 - Max 60 | ||
+ **+** direction cost: cost of moving vertically or horizontally. It will influence both h and g values. Min 0 - Max 50 | ||
+ **x** direction cost: cost of moving diagonally. It will influence both h and g values. Min 0 - Max 50 | ||
+ H coefficient: coefficient applied to the h value. A lower coeffient will make so the algorithm will seek the shortest path, but will be less efficient. An higher value will make so the algorithm will finish earlier, but the path may not be the shortest. Min 0 - Max 99 | ||
+ Special ground: traversing the special ground will cost the specified value times more than traversing the normal ground. It will only influence the g value | ||
+ Heuristics: heustic used to calculate the h value. See below for more information on each one | ||
+ Can move diagonally: whether or not diagonal movement is allowed | ||
|
||
+ Cancel: revert the settings | ||
+ Apply: apply the settings | ||
|
||
#### Heuristics | ||
There are 4 possible heuristics contemplated: | ||
- **Manhattan distance:** estimate the distance considering only horizontal-vertical movements. Ignores obstacles | ||
- **Diagonal distance:** estimate the distance considering all the 8 possible directions. Ignores obstacles | ||
- **Euclid distance:** estimate the distance as the crow flies. Ignores obstacles | ||
- **Dijkstra (h = 0):** always set h = 0. It behaves exactly like Dijkstra's algorithm |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.