forked from s464965/WMICraft
fix: changed sand cost
This commit is contained in:
parent
1dbb1a0e4c
commit
55c3ea0aa8
@ -55,7 +55,7 @@ class Node:
|
|||||||
if self.grid[self.state.position[0]][self.state.position[1]] == 'g':
|
if self.grid[self.state.position[0]][self.state.position[1]] == 'g':
|
||||||
self.cost = 1 if not self.parent else self.parent.cost + 1
|
self.cost = 1 if not self.parent else self.parent.cost + 1
|
||||||
else:
|
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
|
self.depth = 0 if not self.parent else self.parent.depth + 1
|
||||||
|
|
||||||
def __hash__(self) -> int:
|
def __hash__(self) -> int:
|
||||||
|
Loading…
Reference in New Issue
Block a user