Table screen turns over the hands shown at a showdown

main
No checks reported

Commit

Colin Wangyesterday

When a hand reaches a showdown, the hub now puts each shown player's hole cards in the public snapshot, with which of them play in the winning hand. The table screen lays them face-up in front of each seat, facing that player, and highlights the winning ones like the winning community cards. A hand that folded or won without a showdown stays hidden, and nothing is sent while a hand is running.

  • public.py: per-player cards, winningCards and a winner flag (set even when the pot was empty, so the table still turns to the winner)
  • table-scene.js: a spot for two hole cards in front of each seat; they flip over from the player's board
  • pixel-art.js: a bold card face (big rank above the suit) for these smaller cards; the normal face's corner ranks were unreadable at that size
  • room.js: the demo's showdown stage shows two hands; shown hands are added to the screen-reader text; an empty-pot winner gets the winner badge
  • READMEs: the new snapshot fields and what the table shows

Tested: 55 poker hub tests pass, including hidden mid-hand, hidden when the winner took it by a fold, and shown at a showdown. Checked on screen with headless Edge: a live two-player showdown from the hub and the three-player demo stage. Entire-Checkpoint: 01M808QWWBAFAPS0PP63BFNA1W