One Saturday, One AI-Powered Pirate Ship Battle Game, Built in ~7 Hours

Published: (March 13, 2026 at 08:43 AM EDT)
3 min read
Source: Dev.to

Source: Dev.to

Introduction

How did you spend your Saturday?
Following up on those weekend vibe‑coding sessions where AI turns prototyping into actual fun (indie game MVPs at warp speed)… I randomly thought about a super simple ship battle game: tiny pirate ships, one cannon each. Nothing AAA, just basic fun.

Challenge: How fast can I get this playable?

I started at 1:21 PM with a Lovable prompt and, by 8:45 PM, was texting my wife “Done + ”.
Total ≈ 7 hours, including a 2‑hour shopping trip and dinner break.

Frontend & Basics (~2 hours)

  • Used Lovable because credits were available; the choice of model (Claude, etc.) isn’t critical as long as it gets the job done fast.
  • In ~2 hours I built:
    • Proper ship maneuvers and shooting
    • Game menu and health bars
    • All browser‑based, synced to GitHub

Backend & Multiplayer Magic (the painful but rewarding part)

  • Pulled the repo locally and opened it in Cursor.
  • Asked the AI to plan an authoritative server with matchmaking queues, bot fills, WebSocket (WS) communication, and a Rust implementation (needed for a tiny $6 DigitalOcean droplet: low resources, fast, safe).
  • Encountered several issues:
    • Stuttery movements and flickering environment
    • WS connectivity flakes
    • Inconsistent message contracts
    • FIFO queue ordering headaches

I intervened a few times, knowing where these problems usually surface (frontend fighting backend state updates → constant re‑renders). The solution was to make the backend the single source of truth and let the frontend only render/interpolate, resulting in a much smoother experience.

Deployment (reusing my template)

Techy spoiler – skip if you don’t care.

  • Infrastructure: $6 DigitalOcean droplet + free Cloudflare Pages (classic combo).

  • Frontend pipeline: test → lint → build → Cloudflare deploy.

  • Backend (Rust) pipeline:

    cargo test && cargo clippy && cargo audit && cargo fmt
    cargo build --release
    rsync target/release/your_binary user@droplet:/path/
    sudo systemctl restart your_service
    # nginx config tweaks, pull fresh certs for API, healthcheck
  • One command, live.

End Result

  • 9‑player browser lobby
  • 60 fps gameplay
  • Ships sailing, cannons booming, health dropping
  • Synchronization across clients without major drama

All accomplished in a single Saturday. The prototype is desktop‑only and may contain bugs, but it demonstrates how weekend experiments become faster and more rewarding with AI tools.

Play the live version here:

Conclusion

Prototyping used to drag; now it’s pure fun, and you actually finish things. What about you? Built anything silly‑fun with AI on a weekend lately? How quick are your MVPs getting these days? Drop your stories below. 🏴‍☠️

0 views
Back to Blog

Related posts

Read more »

Travigo

Travel as fast as you speak with Gemini! Where live agents meet immersive storytelling & 3D navigation. This project was created for entering the Gemini Live Ag...

Micro games

Hey Gamers! 👾 As part of the Rapid Games Prototyping module, we are tasked with reviewing a peer's game. The challenge is to analyse a prototype built in just...