Wire the poker hub to the shared table screen, voice and a debug page

main
No checks reported

Commit

Colin Wangyesterday

The hub (poker/hub/server.py) now ties the separate pieces together:

  • Shared table: serves poker-room/ on :8080 and streams public game state to it over Server-Sent Events (web.py, public.py, poker-room/live.js). Hole cards never leave the boards.
  • Voice: --voice narrates the game and takes spoken actions for the seat to act, --speak narrates only (voice_host.py, using hub/voice.py and hub/tts.py). Board taps and the console keep working; a tap cancels listening. hub/voice.py listen() takes a stop event for that.
  • Debug page at /debug: per-seat board link, LED and cards sent, game state, event log, and buttons that simulate taps.
  • run_demo.ps1 starts boards, browser and hub together; fake_board.py stands in for a board without hardware.
  • --names for player names; console and voice share one interpret().

Tested: 52 poker hub tests (new tests/test_live.py covers snapshots, narration, the web server, the voice loop and the board protocol) and 173 voice hub tests pass. Played to showdown with two boards on USB using simulated taps; physical button taps and live mic input are not yet verified. README not updated yet.

Entire-Checkpoint: 01M806BCVVJMEYX8CQ9H3MNCSH