cost_so_far calculate hotfix

This commit is contained in:
Vadzim Valchkovich 2023-05-14 14:54:04 +02:00
parent b29d7a6f17
commit c74d1f0925

View File

@ -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":