Inspiration
We wanted to make coding more fun and competitive, especially in an era where AI can generate hundreds of lines of code with just a few prompts. While platforms like LeetCode are incredibly useful for practicing problem-solving, they can sometimes feel repetitive or lack excitement. That’s why we created LeetClash—a real-time, PvP-style coding experience where players can compete head-to-head on algorithmic challenges powered by the Gemini API!
What it does
LeetClash allows users to solve coding problems generated through the Gemini API, either solo or in real-time multiplayer battles. Players can also make the AI generates questions according to user's prompts!
Players choose their game mode (Singleplayer or Multiplayer), difficulty level (Easy/Medium/Hard), and number of problems (3/5/7).
In multiplayer mode, players can host or join a clash. Each player has a health bar that decreases over time but replenishes when problems are solved correctly: the better your solution (e.g., time complexity, code efficiency), the more health you regain. The goal is to finish all challenges before your HP runs out—or, in multiplayer mode, to have more HP than your opponent at the end!
How we built it
With the help of Google AI studio and the Gemini AI, we built the React Frontend from our python skeleton of our application, added the necessary features and deployed the web application using Firebase.
Challenges we ran into
Configuring the Gemini API to generate LeetClash-style problems consistently Building and syncing the real-time multiplayer system Debugging connection issues that prevented players from joining games Deploying the full application to Firebase
Accomplishments that we're proud of
We would say getting the multiplayer system to fully function was a huge milestone. It was our toughest technical hurdle, and seeing it work smoothly was extremely rewarding.
What we learned
We learned how to effectively leverage AI tools to accelerate development and bring ambitious project ideas to life. We also gained hands-on experience with real-time systems, API integration, Google AI Studio (huge shoutout to our savior), and Firebase deployment.
What's next for LeetClash
We’re planning to expand LeetClash with: Anti-cheat detection, to discourage copy/paste solutions and encourage genuine problem-solving. User profiles and rankings, so players can track progress and climb competitive leaderboards
Log in or sign up for Devpost to join the conversation.