Menu

I built a cheat-proof multiplayer memory game that costs $0 to run
📰

I built a cheat-proof multiplayer memory game that costs $0 to run

DEV Community: nextjs·Nour Mohsen·13 days ago
#uy7LPuqJ
#devtonextjs#devto#dev#server#room
Long article (1275 words) — no AI summary yet.
Reading 0:00
15s threshold

Memoryless is a free multiplayer memory game that runs in the browser. You flip face-down tiles looking for sets of three, race a turn timer, and try to outscore everyone else in the room. It has private rooms with invite links and QR codes, random matchmaking with strangers, a leaderboard, and it works fully in English and Arabic.

I designed and built it solo, end to end. This post is about the two constraints that shaped every decision, and what I learned building against them.

The two constraints

1. It had to cost nothing to run. Not "cheap". Zero. No billing account anywhere, forever.

2. It had to be cheat-proof. In a memory game, the whole game is the hidden information. If a tile's value ever reaches a browser before it is flipped, someone will write a script that reads it. So hidden tile values must never leave the server. Not encrypted, not obfuscated. Absent.

The first constraint rules out most of the usual real-time stack. The second rules out most of the usual shortcuts.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.