Shuffle and Deal: Card Decks, Hands and Table Kit
README.md
cardsKit.game
The card game model as plain data, the same on every peer and in tests: a draw pile, a hand per seat, a discard pile, named extra zones and a shared table (a gridKit square board, so slots, overlap refusal and turn models come from gridKit). Game.new{ deck, seats, seed, turns, actions, tableCols, tableRows, stats }; deal, drawCards, play, discard, flip, take, sweep, reshuffle, move, endTurn, stats; audit() proves every card is in exactly one place; publicView() / handView(seat) split what everyone sees from what one player holds; save / load; restorePublic + recover rebuild a game after the dealer leaves. The CardTable runs it on the dealer; tests and single-screen games use it directly.