Texas 42
A server-authoritative build of the classic four-player domino trick game. You and your partner bid and play a hand against two AI opponents that can never see your dominoes, because the server never sends them.

Getting the rules right was necessary but not sufficient. The engine originally played out all seven tricks of every hand even after the bidding team had mathematically already made or been set on their bid, which is correct but wastes the one moment a hand is actually decided. Fixing it meant writing a handDecided() check that has to treat a points bid and a mark bid differently: a points bid is set the instant the target becomes unreachable, a mark bid is set the instant the opponents take a single point, since a mark requires sweeping all 42.
The other two fixes that shipped alongside it were smaller but just as easy to miss during a single-player build: a select-then-confirm double tap on every domino that nobody wants once they're actually playing, and a Socket.IO path and asset base that only broke once the app moved off localhost and onto a subpath behind nginx.