Move apath to Logic package

This commit is contained in:
nlitkowski 2019-05-01 02:09:06 +02:00
parent 9a5f0c4e56
commit fdc7c90e84
3 changed files with 6 additions and 5 deletions

View File

@ -1,6 +1,7 @@
import numpy as np
from heapq import * # pylint: disable=unused-wildcard-import
class AStarNode():
def __init__(self, parent=None, position=None):
@ -27,7 +28,6 @@ def a_path(table, start, end):
# Add the start node
open_list.append(start_node)
# Loop until you find the end
i = 0
while len(open_list) > 0:

View File

@ -6,9 +6,9 @@ def main():
# initialize grid
grid = Grid(20, 20)
# initialize window (grid, start,end,mode)
#mode 1 - random obstacles
#mode 2 - board obstacles
Window(grid,(0,0),(19,19),1)
# mode 1 - random obstacles
# mode 2 - board obstacles
Window(grid, (0, 0), (19, 19), 1)
if __name__ == "__main__":

View File

@ -8,4 +8,5 @@
**Technologies used**
- [PyGame](https://www.pygame.org/)
- [NumPy](http://www.numpy.org/)
- [NumPy](http://www.numpy.org/)
- [PyQt5](https://pypi.org/project/PyQt5/)