diff options
| author | Karan Jayachandra <karan.jayachandra@nxp.com> | 2024-10-16 16:28:52 +0200 |
|---|---|---|
| committer | Karan Jayachandra <karan.jayachandra@nxp.com> | 2024-10-16 16:28:52 +0200 |
| commit | 83cb89862c7c330552c48d9b25f898388693c420 (patch) | |
| tree | 4ffc03856b0725bff60f8d217f8c37792b6eba22 | |
| parent | b581661c993095c43ad19540999ab21957d0e013 (diff) | |
Guests are always lower priority
| -rw-r--r-- | controller.py | 6 |
1 files changed, 5 insertions, 1 deletions
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) |
