Improve table legibility and showdown focus

This commit is contained in:
Jay
2026-07-26 22:18:39 -04:00
parent df4d90f40b
commit 7268d62790
5 changed files with 186 additions and 77 deletions
@@ -26,6 +26,8 @@ data class PotAwardSummary(
*/
data class HandSummary(
val handNumber: Int,
/** Public community cards retained so the modal can explain the winning hand. */
val board: List<Int>,
/** Display labels in the engine's winner order; the human seat is always "You". */
val winnerLabels: List<String>,
/** Derived from winner seat indices, never from a player-controlled name. */
@@ -101,6 +103,7 @@ fun handSummaryFor(
return HandSummary(
handNumber = handNumber,
board = result.board.toList(),
winnerLabels = result.winners.map { winner ->
if (winner == heroSeat) "You" else seatNames[winner]
},