mirror of
https://github.com/n0remac/game-jam-2020.git
synced 2025-12-06 01:13:12 -06:00
got rid of last bit of whitespace
This commit is contained in:
@@ -6,7 +6,7 @@ from pathfinding.finder.a_star import AStarFinder
|
||||
def route(start, end, matrix) -> path:
|
||||
"""
|
||||
Take a matrix of the level in the form wighted numbers, a start and stop point, and return a path between them.
|
||||
|
||||
|
||||
param: start: (x, y) location of the monster
|
||||
param: end: (x, y) location of the player
|
||||
param: matrix: a 2d list of the level. 0s are walls, numbers greater than 0 are weighted
|
||||
@@ -19,6 +19,3 @@ def route(start, end, matrix) -> path:
|
||||
path, runs = finder.find_path(start, end, grid)
|
||||
|
||||
return path
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user