summaryrefslogtreecommitdiff
path: root/controller.py
diff options
context:
space:
mode:
authorKaran Jayachandra <karan.jayachandra@nxp.com>2024-10-16 16:28:52 +0200
committerKaran Jayachandra <karan.jayachandra@nxp.com>2024-10-16 16:28:52 +0200
commit83cb89862c7c330552c48d9b25f898388693c420 (patch)
tree4ffc03856b0725bff60f8d217f8c37792b6eba22 /controller.py
parentb581661c993095c43ad19540999ab21957d0e013 (diff)
Guests are always lower priority
Diffstat (limited to 'controller.py')
-rw-r--r--controller.py6
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)