poker: win and lose animations on the boards when a hand ends

main
No checks reported

Commit

Colin Wang2d ago

When a hand ends the hub now tells each board that was dealt in whether it won (a new result message). The sketch stops swiping the cards and loops a short animation until the next deal: a hopping trophy with sparkles for a winner, a sad face shedding a tear for everyone else. A board that reconnects after the hand gets its result screen back.

  • sketch: poker_show_result(won) and poker_version(), SketchVersion 2
  • board.py: relays result; --check asks for the sketch version, so it spots an outdated sketch and no longer redraws the P? screen
  • connect_boards.ps1: copies the laptop's sketch and app.yaml to the board before flashing, so an outdated board is rebuilt from the current source
  • hub: a best hand that wins an empty pot (everyone checked down) now shows as the winner on the shared screen and in the narration, matching the board
  • README: result screens, table and debug pages, voice flags, run_demo.ps1, new files

Tested: 53 poker hub tests and 173 voice hub tests pass. Both boards were flashed with this sketch through connect_boards.ps1 and received won/lost results in a hand played with simulated taps. The animations were checked as rendered frames, not yet by eye on a matrix. Entire-Checkpoint: 01M807F8EJV0X4594SP84N08KF