Clash of Codes

A 1 vs 1 pvp code battle platform

Description

Overview

Clash of Codes is a real-time 1v1 competitive coding battle web app built using the MERN stack. Players face off against each other to solve coding problems, with the first to submit a correct solution declared the winner. The platform is designed to provide an intense, fast-paced coding experience where problem-solving skills and speed determine victory.

Features

  • 1v1 Code Battles – Players compete in real-time to solve coding challenges.

  • Live Code Execution – Submissions are evaluated instantly to determine correctness.

  • WebSocket-Powered Gameplay – Real-time interactions powered by Socket.io.

  • Diverse Problem Set – A collection of problems ranging in difficulty, with automated test cases.

  • Timer & Leaderboard – Optional timers for added pressure and competitive ranking.

  • User Authentication – Secure login/signup system.

  • Matchmaking System – Players can either challenge friends or be matched with random opponents.

Tech Stack

  • Frontend: React.js

  • Backend: Node.js, Express.js

  • Database: MongoDB

  • Real-Time Communication: Socket.io

How It Works

  1. Players join a queue or invite a friend for a 1v1 coding battle.

  2. A coding problem is assigned to both players simultaneously.

  3. Players write and submit their solutions in real-time.

  4. The system evaluates submissions against predefined test cases.

  5. The first player to submit a correct solution wins the battle.

Issues & PRs Board
No issues or pull requests added.