DedeProGames commited on
Commit
d8b324c
路
verified 路
1 Parent(s): ace6225

Singular 'option' when there is one placement

Browse files
Files changed (1) hide show
  1. render.py +1 -1
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} options" if n else ""
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}"