diff --git a/players/player_3/zipper.py b/players/player_3/zipper.py index 2624a37..9f85921 100644 --- a/players/player_3/zipper.py +++ b/players/player_3/zipper.py @@ -48,9 +48,12 @@ def best_p_value(self): temp_subject_count = max(max(self.memory_bank, key=lambda x: x.subjects).subjects) - if temp_subject_count % 2 == 1: + if temp_subject_count % 2 == 1 and temp_subject_count > 3: temp_subject_count -= 1 + if temp_subject_count == 0: + temp_subject_count = 1 + TotalBlocks = memory * players / 2 blocks_per_subject = TotalBlocks / temp_subject_count