From b05cf3ba0f038df4a348e501443a9fd6f2b711d5 Mon Sep 17 00:00:00 2001 From: Thaloria Date: Sun, 16 Oct 2022 01:00:52 +0200 Subject: [PATCH] fixed double action bug --- crop/Field_Representation_crop.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crop/Field_Representation_crop.py b/crop/Field_Representation_crop.py index 2f2f810..2d8a3e4 100644 --- a/crop/Field_Representation_crop.py +++ b/crop/Field_Representation_crop.py @@ -348,7 +348,7 @@ class Field: if len(full_dic[key]) >= self.current_strategy: self.print_move(full_dic[key]) self.execute_move(full_dic[key]) - break + return if len(reserve_moves) >= 1: for key in sorted(res_dic): self.print_move(res_dic[key])