Loading
Skip to content
All projects

Web Application

Minefall

Real-time 2-player strategy game: drop tokens, line up four, and beware of your opponent’s hidden mines.

Company
Personal project
Category
Web Application
My role
Solo full-stack developer
Animated demo of a Minefall match in two browser windows side by side: Alice and Bob take turns dropping tokens on the same board in real time, each sees only their own hidden mines, and the match ends with “You win!” on one screen and “You lose” on the other.

Overview

Minefall is a real-time 2-player strategy game: drop tokens, line up four, and beware of your opponent’s hidden mines. It is written in TypeScript (strict) end to end, with a NestJS + Socket.IO game server deployed on Render and a Vue 3 web client deployed on Vercel.

My role

Solo full-stack developer

Features

  • Guest play with a nickname
  • Private rooms with a share link and QR code
  • Quick match: a “Play now” matchmaking queue
  • Play solo against a bot (easy or normal)
  • Spectator mode
  • Live chat with emoji reactions
  • Reconnection after a refresh (60 s grace period)
  • Rematch
  • Accounts and personal stats
  • Animations
  • Keyboard play and screen-reader support

Impact

  • ~310 automated tests + 6 Playwright browser tests, all run in CI on every push

Engineering highlights

  1. Server-authoritative design

    Clients only send intentions; the server validates every move and is the single source of truth.

  2. Hidden information

    Each player’s mines never reach the opponent’s browser: every message is built per player by a toPlayerView() function, proven by tests that scan 300 random games and the real network traffic.

  3. Shared game engine

    A pure, framework-free game engine shared by the server and the client, in a monorepo with pnpm workspaces.

  4. Real-time robustness

    Server-side timers, turn ids against double clicks, and reconnection that restores the exact game state.

  5. Quality

    ~310 automated tests + 6 Playwright browser tests (two browsers playing a full game), all run in CI on every push.

© 2026 Ghofrane Soulmi. Built with Nuxt and Tailwind CSS.