From 513b772cd481d3e1ac42e72b239b92cb1ccc451e Mon Sep 17 00:00:00 2001 From: Ilia Denisov Date: Wed, 15 Jul 2026 00:34:58 +0200 Subject: [PATCH] feat(game): show 'Opponent's turn' instead of the opponent's name in the turn strip When it is not the viewer's turn in an online PvP or vs_ai game, the under-board status now reads the generic 'Opponent's turn' (game.opponentsTurn) rather than the opponent's display name or the robot mark, so whose turn it is reads uniformly. The hotseat branch still names the seat to move (whose device-turn it is matters there), and the seat row below continues to name each player. --- ui/src/game/Game.svelte | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/ui/src/game/Game.svelte b/ui/src/game/Game.svelte index 021945f..e65d4d0 100644 --- a/ui/src/game/Game.svelte +++ b/ui/src/game/Game.svelte @@ -1451,12 +1451,11 @@ return s.displayName; } - // turnLabel is the under-board status when it is not the viewer's turn: the opponent's name - // once they have joined, or a generic "opponent's turn" while the seat is still empty (waiting). + // turnLabel is the under-board status when it is not the viewer's turn, for online PvP and + // vs_ai (the hotseat branch of the turn strip shows the seat's own name instead): a generic + // "opponent's turn" rather than the opponent's name or the robot mark, so whose turn it is + // reads the same everywhere. The seat row below still names each player. function turnLabel(): string { - if (view?.game.vsAi) return '🤖'; - const s = view?.game.seats[view?.game.toMove ?? -1]; - if (s && s.accountId && s.accountId !== app.session?.userId) return s.displayName; return t('game.opponentsTurn'); }