Spaces:
Running
Running
Singular 'option' when there is one placement
Browse files
render.py
CHANGED
|
@@ -77,7 +77,7 @@ def _last_move(game, player):
|
|
| 77 |
elif game.last_lines:
|
| 78 |
action += f" 路 <b>+{game.last_lines} line{'s' if game.last_lines > 1 else ''}</b>"
|
| 79 |
n = game.last_options
|
| 80 |
-
of_n = f" 路 {n}
|
| 81 |
pid = getattr(player, "model_id", "")
|
| 82 |
if pid == "baseline/random":
|
| 83 |
answer = f"<b>Random:</b> uniform pick{of_n}"
|
|
|
|
| 77 |
elif game.last_lines:
|
| 78 |
action += f" 路 <b>+{game.last_lines} line{'s' if game.last_lines > 1 else ''}</b>"
|
| 79 |
n = game.last_options
|
| 80 |
+
of_n = f" 路 {n} option{'s' if n != 1 else ''}" if n else ""
|
| 81 |
pid = getattr(player, "model_id", "")
|
| 82 |
if pid == "baseline/random":
|
| 83 |
answer = f"<b>Random:</b> uniform pick{of_n}"
|