Codebreaker is a tactical logic-warfare platform engineered for high-performance, real-time competition. By reimagining the classic 'Cows & Bulls' (Mastermind) mechanic through a "military-intelligence" lens, it transforms a simple puzzle into a high-pressure strategic operation.
The engine utilizes an asynchronous FastAPI backend and a low-latency Socket.IO bridge to synchronize global multiplayer states with millisecond precision. Every guess is more than a move—it's a calculated maneuver executed within a high-fidelity, responsive UI designed for the modern logical operative. Whether engaging in classified single-player missions or escalating to global multiplayer operations, Codebreaker delivers a premium, immersive experience where every byte counts.
| Layer | Technologies | Role |
|---|---|---|
| Frontend | Next.js 15 (React 19, TypeScript) | Core application logic and responsive UI |
| Styling | Tailwind CSS 4, Framer Motion | Design system and micro-animations |
| Backend | FastAPI, Python 3.11+ | Asynchronous service architecture |
| Real-time | Socket.IO, WebSockets | Bi-directional game state synchronization |
| State/Storage | Redis, Zustand, TanStack Query | Persistence and local state management |
| Security | Slowapi, Pydantic v2 | Rate limiting and robust data validation |
- Progressive single-player campaign with adaptive difficulty.
- Dynamic code lengths and limited survival attempts.
- Strategic level constraints designed to test analytical edge.
- Real-time head-to-head combat via global matchmaking.
- Low-latency Socket.IO bridge for instantaneous synchronization.
- Live opponent tracking to monitor competitive maneuvers.
- Instantaneous hit/miss calculations and visual guidance.
- Persistent mission history via an interactive grid system.
- Real-time clue distribution for rapid strategic pivots.
cd backend
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
python main.pycd frontend
pnpm install
pnpm dev- Redis: Mandatory for multiplayer session handling.
- Node.js Runtime: Version 20+ required for the field interface.
- Python Engine: Version 3.11+ required for intelligence services.
© 2026 Kalash Pratap Gaur. All Rights Reserved.
Released under the MIT License.












