frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Show HN: TowerPanic – a family party game on a small FastAPI realtime engine

https://towerpanic.com/
2•ms209495•35m ago
I want to show you the game I created recently and tell you whole the story/experience - including backend/latency/scalability.

You can try it quickly without an account - I created game demo rooms (EU/US/JP) - links below - just be aware that anyone with a link can access join the game.

Let's start with short description of the game itself:

This is the TowerPanic game - you are standing on one of four towers, during each round some of towers crack, and some of these lean, and finally one of these colapse - you need to watch out to not be on the failing one. It's a multiplayer game for whole family. This can be also used as an icebreaking game - for people in any age. The game is safe for children - no violence, no strangers, no chat, no ads. Parent creates an account (free 14-day trial, then a paid pass) and starts the game - others join using a QR code or a link.

Behind the game there is an interesting backend engine - I willdescribe it in a moment.

Let's start with the history of this whole project: - I was playing with asyncio and fastapi - As an exercise I created a reliable chat application (multiple rooms, in each room each user can reliably broadcast a message to all other users) - I extracted communication to separate layer - creating network/application layer interfaces - 'reliable client' interface for client and 'state machine' interface for the service on server. - With these interfaces - I was able to create other service - an 'sgame' (simple game). With verified interfaces and created services (chat, sgame) I was able to ask AI to generate other tools/games - I was impressed by these results - the games/tools worked well - I deployed them on a remote server - I was surprised that the latency was very good - almost everything worked smoothly

I tested the tools and games with my children and one of the game was really great. I decided to make this game public - I chose 'TowerPanic' name for it.

I prepared an account/payment server for this game (as a separate FastAPI application). This was very good choice: - the game servers keep rooms only in memory - nothing persistent (rooms have expiration date) - the account server keeps all persistent data (it uses database)

Because of this split I was able to figure out how to upgrade and scale frontend and backend independently - without significantly impacting users.

I optimized the communication layer - so that it works in finite memory - only finite number of recent messages is kept, and I sent a full service snapshot (full state) to the lagging clients.

The backend process (FastAPI/python) is limited by python GIL (only one core can be utilized) - to utilize all server cores I used HAProxy with consistent hashing to distribute rooms - so that users can be redirected to proper backend process.

I tested how many rooms a single server can handle - it handles hundreds of active rooms in parallel with no significant latency drop.

Before making it public I noticed that latency in other region of world might be higher and this could influence UX - I confirmed this using artificial delay on my remote server.

I decided to deploy the application in three regions - EU, US, JP - to ensure low latency (below 150ms) in most of the world. The room is created in region closest to the user (best latency from the browser to backend).

I needed also to prepare some legal documents (terms, privacy, refunds) - thanks to AI this was much easier. I'm a backend engineer, frontend/UI/UX were designed by me but code was generated by AI.

To summerize all this work: - I'm happy that I was able to deliver complete game/complete product - I think the whole work took me about 20 evenings - I'm impressed that it was so short - I think this is because the technology I used is popular and all fits well - AI was great as a peer (to discuss the options for distributing the load, discuss were to locate servers, or discuss how auth/payments work under the hood, ... - based on this I could choose the best option) - AI was great for doing the non work which I'm doing ineffectively (frontend/UI/legal docs).

The game is available at https://towerpanic.com/?ref=hn

I will appreciate your comments/feedback:

Product: - did you meet any obstacles to play ? - how smoothly it worked ? - please specify your location if it didn't work well - most important thing/things to improve ? - anything else ... Solution/Engineering: - one thing you will change in the architecture / approach ? - anything else ...

If you don't want to register you can play directly using below links (2 rooms for each location, max 10 players in each room/board). Choose best location:

DEMO ROOMS (expire: 19 October 2026 at 22:00 UTC):

EU: https://engine.prod-de-1.towerpanic.com/b/hn1/join/AUB3lS3Y_... https://engine.prod-de-1.towerpanic.com/b/hn4/join/ASlA3J43U...

US: https://engine.prod-us-1.towerpanic.com/b/hn2/join/AUCCS_x9d... https://engine.prod-us-1.towerpanic.com/b/hn5/join/AVQbs_01N...

JP: https://engine.prod-jp-1.towerpanic.com/b/hn3/join/Afj600qp5... https://engine.prod-jp-1.towerpanic.com/b/hn6/join/AUpDUuB1W...

Comments

alparamo•26m ago
Works good, I noticed that edge towers are more likely to fall. Maybe just statistic insignificance, maybe the rand algorithm

The Ferranti Files: 40 Years of Sinclair Secrets Unearthed [video]

https://www.youtube.com/watch?v=jiW3P1rJRMc
1•wicket•2m ago•0 comments

Show HN: My Terminal Themes Web App Is Live

2•bado•4m ago•0 comments

Mini organs launching to space may help future astronauts

https://abcnews.com/Health/mini-organs-launching-space-future-astronauts-humans-earth/story?id=13...
1•lxm•5m ago•0 comments

Kitty-GPT

https://kittygpt.org/
2•ayaros•6m ago•0 comments

Tired of agents' walls of text, so I made them answer in HTML

https://github.com/QingYunA/answer-me-with-html
1•sorlia7z•7m ago•0 comments

Asia chip stocks fall, AI funding worries

https://www.cnbc.com/2026/10/15/sk-hynix-samsung-softbank-stocks-asia-tech-rout-ai-funding-worrie...
4•kristianp•8m ago•0 comments

Why Andrew Ng believes AI won't destroy humanity

https://www.economist.com/insider/inside-tech/why-one-of-the-worlds-most-influential-computer-sci...
2•andsoitis•8m ago•0 comments

BeeLLM

https://bee.pleroma.nexus/
1•davikr•8m ago•0 comments

Step 5 Preview: StepFun's flagship model for agentic work

https://huggingface.co/stepfun-ai/Step-5-Preview
2•Philpax•14m ago•0 comments

FBI disrupts North Korean 'laptop farm' used to infiltrate US companies

https://www.nextgov.com/cybersecurity/2026/10/fbi-disrupts-north-korean-laptop-farm-used-infiltra...
2•WaitWaitWha•14m ago•0 comments

Is this the best inference for agents?

https://runinfra.ai
2•OsamaJaber•14m ago•0 comments

The Grid Died of Too Much Voltage

https://omnilenscodex.substack.com/p/the-grid-died-of-too-much-voltage
1•brandonshinnamo•14m ago•0 comments

DeepSeek Outage

https://status.deepseek.com/incidents/7116348214287
1•ksymph•18m ago•0 comments

Show HN: Bokal – Open-source cookie editor without the "tabs" permission

https://github.com/yuvibabbar-dev/bokal
1•bolalapp•19m ago•0 comments

2026.3 release in November, Air will ship as part of JetBrains IDEs

https://blog.jetbrains.com/ai/2026/10/air-in-ides-eap/
1•Sn0wCoder•20m ago•1 comments

Local AI Benchmarking, Minisforum MS-S1

https://www.meauxsoft.com/News/AI_Benchmark.html
1•dyslexicthumbs•21m ago•1 comments

SK Hynix conditions new US factory on more US chip equipment exports to China

https://www.reuters.com/world/asia-pacific/sk-hynix-conditions-new-us-factory-more-us-chip-equipm...
4•mfiguiere•22m ago•0 comments

The Verifiability Gap in Quantized LLM Supply Chains

https://arxiv.org/abs/2610.19498
1•msgchainhq•25m ago•0 comments

Nvidia CEO Says He Would Cut Off Buyers Who Build Unsafe AI

https://www.bloomberg.com/news/articles/2026-10-14/nvidia-ceo-says-he-would-cut-off-customers-who...
2•mfiguiere•27m ago•0 comments

Symmetries in Boolean Scan

https://ap29600.github.io/boolean_scans.html
2•g0xA52A2A•31m ago•0 comments

Show HN: Visual Scripting for Golang

https://symphony.q3k.app
1•jaitaiwan•31m ago•0 comments

The Double Headed Stack Allocator

https://blog.demofox.org/2026/10/03/the-double-headed-stack-allocator/
7•g0xA52A2A•31m ago•0 comments

Show HN: TowerPanic – a family party game on a small FastAPI realtime engine

https://towerpanic.com/
2•ms209495•35m ago•1 comments

Performance Goals That Survive the Roadmap

https://wakamoleguy.com/p/performance-goals-2026
1•wakamoleguy•38m ago•0 comments

Kalshi CEO says state-led oversight of US prediction markets would push them out

https://www.coindesk.com/policy/2026/10/14/kalshi-ceo-says-state-led-oversight-of-u-s-prediction-...
2•WaitWaitWha•39m ago•0 comments

Bipartisan coalition of states sues OpenAI over user safety

https://www.politico.com/news/2026/10/14/openai-user-safety-lawsuits-01119138
3•reasonableklout•40m ago•0 comments

State attorneys general seize on AI as Washington stalls

https://www.politico.com/news/2026/10/09/attorneys-general-ai-regulation-01112328
3•reasonableklout•40m ago•0 comments

DOJ announces charges in first nationwide tax fraud enforcement operation [video]

https://www.youtube.com/watch?v=s4sAQPXj0MU
2•Bender•41m ago•0 comments

Ask HN: How do you find good developer tools quickly?

1•ritualdevin•42m ago•1 comments

Show HN: Give (low vRAM) local sLLMs codebase-wide context with SQLite (attempt)

https://github.com/govindgcoder/arcKode
2•iamgovindg•42m ago•0 comments