From ecff39e63d26be45f17d6f7177ae9a547e031310 Mon Sep 17 00:00:00 2001 From: Kyle Florence Date: Thu, 8 Jan 2026 16:34:53 -0800 Subject: [PATCH] Simplify share copy --- src/components/game.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/components/game.js b/src/components/game.js index dd294a9..7b6d142 100644 --- a/src/components/game.js +++ b/src/components/game.js @@ -137,11 +137,13 @@ export class Game { const gridState = this.#grid.getState() const statistics = this.#grid.getStatistics(gridState) - const content = [`Path#${id} | ${size} | ${statistics.hiddenWordsGuessed}/${statistics.hiddenWordCount}`] - - if (mode === Grid.Modes.Challenge) { - content.push(`Score: ${statistics.score} / ${statistics.bestPossible} (${statistics.progress})%`) - } + const content = [ + `Path#${id} | ${size}` + ( + mode === Grid.Modes.Challenge + ? ` | ${statistics.score}/${statistics.bestPossible}` + : '' + ) + ] let moves = '' const lastMovesIndex = statistics.moves.length - 1