Back to projects

MarketMaster

Experimental

Real-time multiplayer economics quiz game in the style of Kahoot. Players join a lobby via a room code or play solo, then race to answer questions about national debt, GDP growth, trade, stocks, population and companies. Scoring rewards speed and answer streaks, with a live leaderboard, XP ranks and confetti.

marketmaster.com
Started 2026-03Philipp Schmid

Problem

Learning macroeconomic facts (debt ratios, GDP growth, trade balances) is dry, and most quiz apps are either single-player or hosted SaaS that you cannot self-run with your own question set.

Solution

A self-contained Rust/Axum server that hosts real-time game rooms over WebSockets, serves a gamified vanilla-JS frontend, and runs an authoritative game loop with timed rounds, speed and streak scoring, and live leaderboards. Questions live in a JSON file (116 curated German economics questions across 8 categories), so the content is easy to extend without code changes.

Tech Stack

RustAxumTokioWebSocketsVanilla JSDocker

Infrastructure

Single self-contained Rust binary built via a multi-stage Alpine Docker image (musl static build), serving both the WebSocket API and static frontend on one port with gzip compression and a health check. State is held in memory with a background cleanup loop for stale rooms; questions load from a bundled JSON file. Not yet deployed to a public domain.

Outlook

Deploy to a public subdomain so the lobby can be shared by link, expand the question bank beyond the current 116 and add English localization, and persist player stats and high scores to support cross-session XP and ranking.

quiz-gamemultiplayerwebsocketsrust