Multiplayer card and puzzle games with no WebSockets: a 6-letter link, a shared seed and a 1-second heartbeat
I build NitroPlayer , a site of classic browser games: Solitaire, Sudoku, Mahjong, FreeCell, Checkers, Hearts and so on. A lot of our players are 45+, and the feature they use most is not a fancy one. It's this: send a link to your sister, your grandson or a coworker, and you both play the same game at the same time. No app, no account, no lobby to understand. Tap the link, play. When I started,…
NitroPlayer is a website featuring classic browser games like Solitaire, Sudoku, Mahjong, FreeCell, Checkers, and Hearts, catering to an older demographic. The most popular feature among players is the ability to play the same game simultaneously with others using a simple link. The system doesn't require any advanced technology like WebSockets or real-time servers.
Instead, it employs a private match code, shared seed, and 1-second heartbeat to enable multiplayer experiences. The 6-character code ensures a unique match, while the seed guarantees identical game setups for both players. The server only sends a small integer payload, keeping communication lightweight, and players send progress updates every second.
A 1-second heartbeat replaces traditional socket communication, allowing for seamless gameplay even with minor latency. The server handles the game clock, results, and cleanup, making the system stateless and cacheable. No additional infrastructure is needed, as it operates on the same PHP-FPM pool as the rest of the site. The design prioritizes simplicity and ease of use, with codes crafted for human readability.
Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.