Clash of Code (CoC) is a real-time 1v1 competitive coding PvP platform built using the MERN stack, where developers battle live across multiple game modes.
It combines competitive programming, esports-style matchmaking, win streaks, and Monkeytype-inspired performance analytics.
Think Codeforces + LeetCode + real-time duels.
Experience real-time coding battles in action ⚔️
Screen.Recording.2026-04-01.232752.1.1.mp4
- Rating-based matchmaking
- Live match updates using WebSockets
- In-match real-time chat
- Instant win/loss resolution
- Players are matched by rating
- A problem of matching difficulty is selected
- Same question for both players
- First correct submission wins
- Players analyze code snippets
- Answer time complexity + space complexity
- First player to get 10 correct answers wins
- Players predict output of code snippets
- First player to get 5 correct outputs wins
After each match, players receive visual analytics based on:
- ⚡ Speed – response/solve time
- 🎯 Accuracy – correct answers percentage
- 🧠 Efficiency – solution optimality
Graphs include:
- Player vs Opponent (current match)
- Player vs Previous Matches (growth over time)
- ELO-based rating system
- 🔥 Win-streak (Strike) system
- Higher streaks yield higher rewards
- Fair rating gain/loss based on opponent rating
- Invite friends via match links
- Player profiles with match history and stats
- React.js
- Monaco Editor (VS Code editor in browser)
- Socket.io Client
- Chart.js / Recharts for performance graphs
- Node.js
- Express.js
- Socket.io for real-time communication
- MongoDB Atlas
- Users
- Matches
- Ratings
- Performance analytics
- Win streaks
- Docker
- Isolated containers for secure code execution
- Dockerized services
- Deployed using Docker & Docker Compose