From 1d80f4c234d399abe4ffbe9d548754345610f42e Mon Sep 17 00:00:00 2001
From: Claude
Matches are off-chain. No card was moved or burned.
diff --git a/src/game/play.css b/src/game/play.css index 69a7c9c..9ac00e0 100644 --- a/src/game/play.css +++ b/src/game/play.css @@ -206,3 +206,4 @@ html.wd-in-match .auth-wrap,body:has(.match) .auth-wrap{display:none} .show-narrow{display:none} @media(max-width:480px){.show-narrow{display:inline}.play-actions .button{min-width:0}} .lane-bonus{color:var(--ctp-yellow)!important;margin-left:2px} +.result-lanes .tie-note{font-size:10px;color:var(--ctp-yellow);line-height:1.3} diff --git a/tests/ui-play.test.ts b/tests/ui-play.test.ts index 2348b53..2ccf3a2 100644 --- a/tests/ui-play.test.ts +++ b/tests/ui-play.test.ts @@ -141,3 +141,14 @@ test('the final board shows scoring power, and queued cards preview their lane p assert.equal(q.power, q.basePower + q.trend + bonus); } }); + +test('results explain a tied Topic decided by the on-topic tie-break', async () => { + const { renderToStaticMarkup } = await import('react-dom/server'); + const { createElement } = await import('react'); + const { Results } = await import('../src/game/Results.tsx'); + const html = renderToStaticMarkup(createElement(Results, { modeName: 'Standard', onRematch() {}, onLobby() {}, result: { + winner: 1, turns: 6, reason: 'topics', totalPower: [37, 42], + lanes: [{ name: 'Current Events', myPower: 13, theirPower: 13, winner: 1 }, { name: 'Archive', myPower: 10, theirPower: 10, winner: 0 }, + { name: 'Stub', myPower: 14, theirPower: 19, winner: 1 }] } })); + assert.equal(html.match(/Tie, decided by on-topic cards/g)?.length, 2); +});