From 850a457e8fd8a95b7eb878afe05ed8ac9319e49d Mon Sep 17 00:00:00 2001 From: jparkhouse2024 Date: Wed, 24 Sep 2025 22:38:44 -0400 Subject: [PATCH] Update zipper.py --- players/player_3/zipper.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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