Inspiration

As students we have trouble consistently practicing leetcode, to solve this we made code comp where it gamified the boring leetcode grind. Also the multiple choice is inspired by kahoot.

What it does

There are two gamemodes, multiple choice, and written coding problems. You after pressing to join a match, you wait for another player to join and play against. In both gamemodes both players answer questions each round, then whoever has the most correct wins.

How we built it

React, Django, PostgreSQL, self hosted server.

Challenges we ran into

  • Networking between two clients or players, having each user communicate with the server in real time
  • Authentication of users. Sending the information of the users to the database.
  • Designing the PostgreSQL database.

Accomplishments that we're proud of

  • The frontend came out looking very nice
  • How we utilized the database in a clever way
  • The queuing and connection feature, where users can connect to the same game

What we learned

  • Networking between servers/users
  • PostgreSQL
  • Django
  • Project Scope (knowing the demands of the project)
  • Authentication

What's next for CodeComp

  • Written coding segment (Leetcode style, timed)
  • Solutions compared with test cases
  • Knockout elimination system (for 10+ players)
  • Giving it it's own domain
  • International play
  • Daily Bonus
  • Cosmetics/diverse avatars
Share this project:

Updates