cost_so_far calculate hotfix
This commit is contained in:
parent
b29d7a6f17
commit
c74d1f0925
@ -18,9 +18,9 @@ class TemporaryState(Waiter):
|
|||||||
self.h = h
|
self.h = h
|
||||||
|
|
||||||
def replace(self, repl):
|
def replace(self, repl):
|
||||||
|
self.cost_so_far = copy.copy(repl.cost_so_far)
|
||||||
self.basket = copy.copy(repl.basket)
|
self.basket = copy.copy(repl.basket)
|
||||||
self.parent = repl.parent
|
self.parent = repl.parent
|
||||||
self.cost_so_far = repl.cost_so_far
|
|
||||||
|
|
||||||
def apply_transformation(self):
|
def apply_transformation(self):
|
||||||
if self.agent_role == "left":
|
if self.agent_role == "left":
|
||||||
|
Loading…
Reference in New Issue
Block a user