fix: changed sand cost

This commit is contained in:
korzepadawid 2022-04-13 18:56:39 +02:00
parent 1dbb1a0e4c
commit 55c3ea0aa8

View File

@ -55,7 +55,7 @@ class Node:
if self.grid[self.state.position[0]][self.state.position[1]] == 'g':
self.cost = 1 if not self.parent else self.parent.cost + 1
else:
self.cost = 3 if not self.parent else self.parent.cost + 3
self.cost = 2 if not self.parent else self.parent.cost + 2
self.depth = 0 if not self.parent else self.parent.depth + 1
def __hash__(self) -> int: