r/webdev • • 2d ago

Showoff Saturday [Showoff Saturday] I built a real-time multiplayer board game on Cloudflare Workers + Durable Objects

Landgrab is a free Monopoly-like game for 2–8 players or play with bots: https://landgrab.top

Stack:

- Game engine is pure TypeScript with a seeded RNG, shared by server, client and bots

- One Durable Object per room over WebSockets, with SQLite for accounts, stats and game logs

- React + Vite frontend, deployed as Worker static assets

- A simulator plays thousands of bot games to catch rule bugs and check board balance

Happy to answer questions about the architecture.

4 Upvotes

4 comments sorted by

1

u/Thin-Read-4483 2d ago

Sharing the TypeScript engine across client, server, and bots with a bot simulator is super clean love how Durable Objects + SQLite fit real-time rooms here.

1

u/iliketocodethings 23h ago

Very nice this is exactly how i built my dnd companion app, it’s amazing how cheap it is to operate using DO+workers

0

u/StatsDota_Dmitrii 2d ago

the bot simulator is the part i like most. in dota every patch some hero is broken for 2 weeks bc nobody playtested enough lol. are your bots smart enough to actually find balance problems, or they mostly play random and just catch rule bugs?

1

u/a_cox-2916 1d ago

One extra balance check: split results by player count and starting seat. Aggregate win rates can hide position effects; if runs retain their seeds, odd results are reproducible.