From 83cb89862c7c330552c48d9b25f898388693c420 Mon Sep 17 00:00:00 2001 From: Karan Jayachandra Date: Wed, 16 Oct 2024 16:28:52 +0200 Subject: Guests are always lower priority --- controller.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'controller.py') diff --git a/controller.py b/controller.py index c153001..1116443 100644 --- a/controller.py +++ b/controller.py @@ -63,7 +63,11 @@ class RoundGenerator: active_players = self.players.get_potential_players() identifiers = [*active_players] play_count = [ - self.history[player_id] if player_id < self.players.guest_id_start else 10 + ( + self.history[player_id] + if player_id < self.players.guest_id_start + else self.round + ) for player_id in active_players ] ids = sample_list(identifiers, play_count, count) -- cgit v1.3.1