Dev Solanki

CS STUDENT ยท AI/ML FOCUS ยท BUILDER OF FORGE

2nd Year CS Python AI / ML FastAPI Google Gemini WebSockets

I'm a second-year Computer Science student with a focus on AI and machine learning. I built Forge: AI Trivia Showdown during my semester break as a passion project โ€” and I've been obsessively improving it ever since. This is my story.

Why I Built Forge

Let me introduce myself properly. I'm Dev Solanki, and Forge is the kind of thing you build when you're supposed to be relaxing during a vacation but instead find yourself hunched over a laptop at 2 AM, debugging WebSocket connections and muttering at your terminal. I wouldn't have it any other way.

I built Forge because I love trivia, but I was tired of playing the same questions on other platforms. You know the feeling โ€” you've seen that question about the capital of Australia three times already, and the answer choices are always in the same predictable order. It stops being fun and starts feeling like memorizing a dusty database. I wanted something that felt alive. Something where every round was genuinely new, where I could challenge friends in real time without any lag, and where I could type literally any topic and get a fresh quiz in seconds.

But honestly? I also built this because I wanted to see if I could. As a student, there's nothing more thrilling than taking an idea from your notebook and turning it into something that actually works โ€” something that other people can use and enjoy. Forge is my proof of concept that a solo developer can harness modern AI to create a genuinely fun, scalable, real-time game with zero infrastructure budget.

What Makes Forge Different

The biggest difference is right in the name โ€” AI Trivia Showdown. Every single question you see in Forge is generated on the fly by Google Gemini AI, not pulled from a static list. That means no repeats, no stale facts, and no limits on topics. You want a round about obscure 90s anime? Done. A deep dive into cricket World Cup finals? Absolutely. Questions about a scientific breakthrough from last month? Gemini already knows about it.

The second difference is real-time multiplayer. When you're playing against friends, everyone answers the exact same questions at the exact same time, with live scoring that updates as soon as you submit. No turn-based waiting, no refresh buttons โ€” just pure, head-to-head speed and knowledge. It feels like being in a quiz hall, even if you're alone in your room.

And because the questions are AI-generated, you can choose literally any topic. Movies, science, history, video games, food, coding, Bollywood, cricket, quantum physics โ€” the AI tailors the difficulty and angle based on whatever you ask for. No one else is doing this at zero cost with this level of real-time multiplayer integration.

The Technical Challenge

Building a real-time multiplayer game that talks to an AI, keeps everyone's scores in sync, and runs smoothly on the cloud is not a weekend project. As a student working alone with zero budget, I had to make every architectural decision count.

The frontend is plain Vanilla JavaScript โ€” no React, no Vue, no frameworks. I wanted to keep it fast, lightweight, and fully portable for the Android wrapper I'm building with CapacitorJS. The backend is FastAPI, a Python framework that handles asynchronous tasks beautifully โ€” crucial for managing dozens of simultaneous WebSocket connections without blocking. Every score update, every timer tick, every answer flows through a persistent WebSocket connection, making the game feel instantaneous.

For the AI layer, I integrated Google Gemini and built a carefully engineered prompt system that gets consistent, structured question output. Every AI response is validated with Pydantic before it reaches any player. The infrastructure runs on Google Cloud Run and Vercel โ€” both free tier, both zero cost. The hardest part was glueing it all together while keeping latency low. There were moments I wanted to throw my laptop out the window, especially during WebSocket reconnection bugs. But every problem fixed taught me more than any lecture ever could.

GOOGLE GEMINI

AI question generation

FASTAPI

Python async backend

WEBSOCKETS

Real-time multiplayer sync

CLOUD RUN

Serverless hosting ($0)

VERCEL

Frontend CDN ($0)

SUPABASE

Leaderboard & donations

VANILLA JS

Zero-framework frontend

CAPACITOR

Android app packaging

Game Modes โ€” Something for Every Mood

I designed Forge with different contexts in mind. Not everyone wants the same kind of trivia experience, so I built three distinct modes:

๐ŸŽฏ

SOLO MODE

Your personal practice ground. No pressure, no opponents โ€” just you and the AI. Track your personal best score per difficulty and earn trophies based on your accuracy.

๐ŸŽฎ

CLASSIC MODE

Real-time free-for-all. Everyone answers the same questions simultaneously. Speed bonuses and streak multipliers make every second count.

โš”๏ธ

TEAM MODE

Two teams battle it out. Each team picks a topic, a randomizer wheel picks one, and the combined scores of each team decide the winner.

What I'm Working Toward

๐Ÿ’ฐ

ADSENSE MONETIZATION

I'm working toward Google AdSense approval so I can keep Forge free for everyone while covering cloud costs. Nothing intrusive โ€” just tasteful ads that let this stay a zero-cost game for players.

๐Ÿ“ฑ

GOOGLE PLAY STORE

A native Android app is in the works using CapacitorJS. I want Forge to be a one-tap experience on your phone โ€” no browser required.

๐Ÿค–

BETTER AI QUESTIONS

I'm constantly improving the prompt engineering and validation pipeline to produce more accurate, more surprising, and more challenging questions.

๐ŸŒ

A REAL COMMUNITY

Beyond the tech, my true goal is to build a community of trivia lovers who enjoy this game as much as I enjoy building it. That starts with listening to every piece of feedback.

Forge is my creation, but it's not just mine. Every round you play, every bug you report, every piece of feedback you send โ€” that shapes where this project goes next. I'm genuinely listening.

Thank you for being here. Thank you for playing. And most of all, thank you for giving a student's passion project a chance. Now go out there, pick a topic, and show that AI what you're made of.

โ€” Dev Solanki
Built with caffeine, curiosity, and a lot of late nights.