TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: What stack for a multiplayer board game?

10 pointsby tspalmost 3 years ago
What tech stack would you use today for a multiplayer board game?<p>- 1-6 players per game - Round based - Only one player can be active at a time - Multiple games happen at the same time - Optimally, non-technical players can spin up their own server to play on (e.g. via Electron app) - Optimally relatively cheap<p>For communication I was thinking about websockets, but this would limit the amount of parallel connections &#x2F; games a lot.<p>I am thankful for every comment mentioning libraries &#x2F; stacks and why I should consider them.

12 comments

Leftiumalmost 3 years ago
Have you heard of Hathora: Multiplayer Game Development Made Easy?<p>- <a href="https:&#x2F;&#x2F;hathora.dev&#x2F;" rel="nofollow">https:&#x2F;&#x2F;hathora.dev&#x2F;</a><p>HN Discussion:<p>- <a href="https:&#x2F;&#x2F;hw.leftium.com&#x2F;#&#x2F;item&#x2F;30442072" rel="nofollow">https:&#x2F;&#x2F;hw.leftium.com&#x2F;#&#x2F;item&#x2F;30442072</a><p>- <a href="https:&#x2F;&#x2F;hw.leftium.com&#x2F;#&#x2F;item&#x2F;31084779" rel="nofollow">https:&#x2F;&#x2F;hw.leftium.com&#x2F;#&#x2F;item&#x2F;31084779</a><p>- <a href="https:&#x2F;&#x2F;hw.leftium.com&#x2F;#&#x2F;item&#x2F;31934181" rel="nofollow">https:&#x2F;&#x2F;hw.leftium.com&#x2F;#&#x2F;item&#x2F;31934181</a>
评论 #32062551 未加载
toast0almost 3 years ago
Have you looked at Vassal? <a href="https:&#x2F;&#x2F;vassalengine.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;vassalengine.org&#x2F;</a><p>It&#x27;s a board game engine and has multiplayer support. There&#x27;s also boardgame.io which looks hipper (npm), but I didn&#x27;t see any screenshots of games being played.<p>Regarding scaling, there&#x27;s articles about lots of stacks doing 1M websockets on a host; if that&#x27;s limiting you, you&#x27;ve got a lot of players, so that&#x27;s a nice problem to have.
评论 #32062514 未加载
评论 #32062485 未加载
andrewallbrightalmost 3 years ago
If it were me, and if there is a graphical component I would use this as my stack. (Note: I am a hobbyist game dev).<p>- Unity + mirror (multiplayer library) for the server client. The library documentation will help with a mental model of a multiplayer game. Export the binary of whatever your target OS will be. I prefer linux. - Unity for the game client. I prefer webGL export for the client so I can host the HTML&#x2F;JS&#x2F;WASM like a normal static site. However; you can (also) export windows, Mac desktop apps too. - nginx to host the static site and reverse proxy to the multiplayer - systemctl units for nginx, and the multiplayer binary on some linux OS. I prefer Ubuntu.<p>For the code; it&#x27;s all about developing a mental model of what things exist in your system and what interactions those things have with each other.<p>It being me, there is a CICD system somewhere running tests for pretty much anything.
评论 #32062579 未加载
dyejealmost 3 years ago
Depending on your goals, Tabletop Simulator could be a good fit.
评论 #32062271 未加载
评论 #32057295 未加载
hoofheartedalmost 3 years ago
If I was building a game side project, I would personally go:<p>- React Native frontend<p>- .Net Core backend<p>- NGINX webserver, on a bare metal Linux VM of course<p>- SignalR for web sockets<p>- Mysql for long term data storage<p>- Redis for caching<p>- Mailgun for sending app emails<p>Did I miss anything?
lavishlibra0810almost 3 years ago
You could look in peer to peer interactions for some actions on the board and websockets for keeping state of the board in sync for everyone.
评论 #32056593 未加载
评论 #32055888 未加载
nprettoalmost 3 years ago
You mentioned electron so I suspect you&#x27;re interested in games playable via browser, in that case these two come to my mind in the javascript&#x2F;typescript ecosystem:<p>- <a href="https:&#x2F;&#x2F;boardgame.io&#x2F;" rel="nofollow">https:&#x2F;&#x2F;boardgame.io&#x2F;</a><p>- <a href="https:&#x2F;&#x2F;www.colyseus.io&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.colyseus.io&#x2F;</a>
评论 #32062622 未加载
TillEalmost 3 years ago
Any game engine with a decent networking component will be able to handle this (if Tabletop Simulator doesn&#x27;t fit your needs). Which one you choose will depend on 2D vs 3D, language preference, etc. Unity is always a safe bet when you don&#x27;t have unusual requirements.
评论 #32060104 未加载
penner_im_autoalmost 3 years ago
I&#x27;m surprised nobody suggested Godot.<p>I have developed several 2d games with it, as a hobby, used a python server for mp, it was very intuitive and understandable. And it is completely free, no ads or restrictions.
mmacvicarprettalmost 3 years ago
This platform looks very cool! <a href="https:&#x2F;&#x2F;www.boardible.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.boardible.com&#x2F;</a>
评论 #32056830 未加载
rtcomsalmost 3 years ago
Elixir&#x2F;Phoenix should be good for backend.
评论 #32062307 未加载
elil17almost 3 years ago
Are you trying to make money with it? If not, just make a Tabletop Simulator mod.
评论 #32062326 未加载