October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsWindows FixRecommendedWindows errors stealing your time? Find the fix fastScan stability, cleanup and performance issues.Fix NowOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
World desk5 min

What I Learned From Building a Multiplayer Card Game

Building a multiplayer card game means designing the rules around shared state, hidden information, interruptions, disconnects, and repeatable tests—not just the interface.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Building a multiplayer card game taught me that the hard part is not drawing cards on screen; it is keeping every player’s view consistent while the server decides what can happen. In a retrospective on Dealopoly, a real-time platform for games including Monodeal and Lowdeck, Shubham Saurabh describes lessons about authoritative game rules, hidden information, reactions, reconnects, and testing. These are observations from one project, not a universally proven architecture.

Make the server the authority on every move

A browser should ask to make a move, not decide that the move is legal. A player might send a command to play a card, choose a target, or act during a particular phase. The server that owns the current game state checks whether that command is allowed, applies the rules if it is, and then sends the resulting update to the players.

As an Amazon Associate I earn from qualifying purchases.

This boundary matters because a client can be modified, out of date, or disconnected from what the server considers current. If the browser is trusted to enforce rules, a player can bypass that logic or submit an action based on stale information. Saurabh summarizes the principle: “The client can request an operation, but the system that owns the state should be responsible for deciding whether it happens.”

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Keep game rules separate from networking

In Dealopoly’s reported design, the game engine is separate from the Fastify WebSocket server. The engine takes a state and a command, then returns either a rejection or an updated state and events. The WebSocket layer handles communication; it does not need to contain the rules themselves.

#1 Best Overall
Sale
Five Crowns Rummy Style Card Game for Kids and Adults, Family Game Night
  • FAMILY CARD GAME: It’s a unique twist on the classic rummy card game. A fifth suit of stars makes Five Crowns even more exciting than other family card games
  • EASY TO LEARN GAME: Make books and runs, knowing when to play your cards. But tread carefully! Rotating wild cards can change your luck in an instant
  • GAMES FOR ADULTS AND FAMILY: Looking for fun card games for adults and families? This award-winning game is one of the best card games for family game night
  • GREAT TRAVEL GAME: Five Crowns is a perfect game for travel. This fun indoor activity can keep kids entertained on car rides and plane trips
  • FUN CARD GAMES: Five Crowns is one of the best card games for teens and kids ages 8-12, and games for 2 players. With this game, you can have as many as 7 players

That separation makes rule logic easier to exercise without starting a browser, WebSocket server, Redis, or database. It also creates a clearer place to test individual rules and sequences of actions. The author describes rule modules for setup, drawing, property, rent, payment, reactions, and win conditions. The exact module boundaries will vary by game, but isolating rules from transport gives tests a smaller, more direct target.

Model reactions as part of the game state

Some actions do not resolve immediately. An action may open a window for another player to react, be countered, or continue to its final effect. Dealopoly’s account treats this as a state machine rather than a temporary animation or UI condition.

That distinction helps the server answer precise questions: who may respond, what responses are legal, and what happens when the window closes? If a reaction can interrupt an operation, the intermediate state is part of the rules and must be represented explicitly. Otherwise, clients and the server can disagree about whether the original action has already happened.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #2
Taco Cat Goat Cheese Pizza Card Game by Taco Cat Games, Age 7+, 2-8 Players
  • Fast-Paced Fun for All Ages: Engage in a lively game where players race to match cards with spoken words like "Taco," "Cat," "Goat," "Cheese," and "Pizza." Designed for 2–8 players aged 7 and up, each round lasts just 10–15 minutes, making it perfect for quick family card games or travel entertainment. Its simplicity and speed ensure everyone stays engaged and laughing.
  • Simple Rules, Wild Gameplay: Players take turns playing cards while chanting the game's title in order. When a spoken word matches the card played, everyone races to slap the pile and the last one to do so takes the cards! Add in surprise action cards and it becomes a fast-paced, laugh-out-loud competition that's easy to learn but hard to stop playing.
  • Card Games for Families and Social Events: Whether it's a holiday gathering, birthday party, or casual get-together, Taco Cat Goat Cheese Pizza is a go-to choice. Its easy-to-learn rules and engaging gameplay make it a hit among both kids and adults. It's also a top pick for stocking stuffers and Easter baskets, offering fun without the need for screens.
  • Portable Entertainment for On-the-Go Fun: Compact and lightweight, this card game is travel-friendly, making it an excellent companion for road trips, vacations, or family outings. Its quick setup and short playtime ensure that you can enjoy a fun-filled game session anytime, anywhere.
  • Boosts Cognitive Skills and Reflexes: Beyond entertainment, Taco Cat Goat Cheese Pizza helps develop important skills such as concentration, pattern recognition, and fine motor coordination. Players must stay alert and think quickly, making it both a fun and mentally stimulating activity for all ages.

Send each player only the information they may see

The server’s complete state may include information that should remain secret, such as other players’ hands. Saurabh describes generating a masked, player-specific view from the same underlying game state instead of broadcasting the full state to everyone.

This is both a presentation and an authorization decision. Hiding a card only in the interface is not enough if the data has already been sent to the client. The server should construct each player’s view so that private information is absent, while public information remains consistent across the room.

Decide what a disconnect means before it happens

A dropped connection changes the game, not just the screen. Dealopoly reportedly tracks room membership and disconnect status, allows a grace period for a player to return, and can replace a disconnected player with a bot after that period. Those choices shape the experience: a short interruption can be recoverable, while a longer absence needs a defined outcome.

Rank #3
Sale
Mattel Games UNO Show ‘em No Mercy Card Game in Storage Tin,Ages 7+
  • UNO Show 'em No Mercy game adds 56 more cards, special rules and super-tough action cards for the most brutal edition of UNO ever!
  • Tougher action cards, such as Skip Everyone, Wild Draw 6 and even Wild Draw 10 make game play merciless!
  • The Stacking Rule lets players pass the penalty (Draw +2, +4, +6, +10) to the next player until whoever can't play has to take all the cards combined!
  • Whenever a '7' or a '0' card is played, players must swap hands with another player!
  • The Mercy Rule means that if any player gets 25+ cards in their hand, they are out of the game!

Reconnect behavior therefore belongs in the game’s rules and state model. The system needs to know which player is returning, what state they are allowed to see, and whether the game continued or paused while they were away. The appropriate policy depends on the game; the important lesson is to make the transition explicit rather than treating reconnection as an incidental UI feature.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Separate fast coordination from durable records

The author describes using Redis for room state, active-room indexing, disconnect timers, and Pub/Sub coordination between server instances. PostgreSQL is described as the store for longer-lived records such as player data, game history, statistics, and leaderboards.

The useful design question is how long each piece of data must live and what needs to coordinate across servers. Room and turn state may need fast updates and short-term coordination; history and account records need persistence beyond a live session. The project’s division is one example, not a requirement that every game use the same pair of technologies.

Rank #4
Mattel Games Phase 10 Card Game in Storage Tin for Ages 7+
  • Phase 10, the rummy-type card game with a twist, comes in a colorful storage tin convenient for travel and portable fun!
  • Players race to complete 10 varied phases that include cards with the same color, runs, sets or a combination of runs and sets.
  • Each phase is specific for each hand -- those who complete the Phase advance to the next, but those who do not must try again!
  • 'Wild' and 'Skip' cards add excitement and deliver game-changing moments!
  • The deck is color blind accessible with special graphic symbols on each card to help identify its color, allowing players with any form of color blindness to play!
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Use the same rules for bots and humans

Dealopoly’s bots reportedly submit legal commands through the same game engine as human players. This avoids giving a bot a special route around validation: both kinds of player interact with the rules through commands, and the engine decides what is permitted.

That shared path can also make behavior easier to inspect. When an unexpected state appears, the relevant question remains what command was submitted and how the engine handled it, rather than whether a separate bot implementation changed the state differently.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Simulate sequences and make failures reproducible

Saurabh recommends running simulations and using deterministic seeds to reproduce failures. A seed lets a test run the same randomized setup again, which is useful when a bug only appears after a long sequence of draws, moves, and reactions.

Best Value
Mattel Games UNO Card Game, Ages 7+, 2-10 Players
  • UNO card game provides classic play, where players match colors or numbers in a race to get rid of all their cards!
  • Action Cards and Wild Cards add unexpected excitement and game-changing fun, like the Reverse Card that switches the direction of play!
  • The deck includes 3 blank Wild Cards for house rules anyone can make up -- erase and create new rules each game!
  • When down to one card, players don't want to forget to yell 'UNO!' Keep score and the first player or team to 500 wins!
  • The color blind accessible deck has special graphic symbols on each card to help identify its color, allowing players with any form of color blindness to play!

Simulations can also check whether extended play produces impossible states. They are a debugging aid, not proof that every rule or edge case is correct: the value depends on what scenarios are exercised and what invariants the tests check. The practical goal is to turn a hard-to-repeat report into a repeatable sequence that can be fixed and kept as a regression test.

What the project’s lessons add up to

The through-line is explicit state ownership. The server validates commands, the engine applies rules independently of networking, and each player receives only an appropriate view. Reactions and disconnects become modeled transitions, while tests and simulations help examine the paths between states.

Those decisions are useful questions for any multiplayer game, but the Dealopoly account is a single project retrospective. It does not establish that its particular stack or architecture is best for every game, nor does it independently verify performance or security.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Quick Recap

SaleBestseller No. 3
Mattel Games UNO Show ‘em No Mercy Card Game in Storage Tin,Ages 7+
Mattel Games UNO Show ‘em No Mercy Card Game in Storage Tin,Ages 7+
Whenever a '7' or a '0' card is played, players must swap hands with another player!; Comes in a collectible, portable travel tin.
$14.28
Bestseller No. 4
Mattel Games Phase 10 Card Game in Storage Tin for Ages 7+
Mattel Games Phase 10 Card Game in Storage Tin for Ages 7+
'Wild' and 'Skip' cards add excitement and deliver game-changing moments!; This version of Phase 10 comes in a decorative tin that's great for storage!
$11.54

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Windows Errors? Fix Them Before They SpreadFree repair scan
Outdated Drivers Are Slowing You DownFree scan - exact matches

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.