How to run a coding contest for your college or club
A good coding contest is less about the hardest problems and more about a smooth day: everyone knows the rules, the teams are balanced, and nobody waits around. This guide walks through a simple plan that works for a classroom, a college coding club or a company event.
1. Decide who it is for
Start with your players, not the problems. A first-year class needs mostly easy problems and a short match. An experienced club can handle harder problems and a longer match. If the group is mixed, mix the teams too: put one stronger and one newer programmer in each team, so every team has a fair chance and newer players learn from the others.
2. Choose the format
- Team size: 2 players is easiest to organise. 3 or 4 works well when you want more discussion.
- Match length: 30 to 60 minutes for a class period, up to 2 or 3 hours for a full event.
- Relay turn: how long each player codes before the editor passes on. 5 to 10 minutes gives time to make progress; shorter turns make the match faster and more chaotic.
- Number of problems: about one problem per 10 to 15 minutes of match time is a sensible start.
3. Pick the problems
Order matters. Start with one easy problem so every team scores early and settles in, then increase the difficulty. Read each problem yourself before the day, and check the constraints so you know what kind of solution is expected.
On RelayTrixCode you can browse the problem library by difficulty and topic, read each problem in full, and add up to 10 problems to a room in the order you want them played.
4. Explain the rules before you start
Spend five minutes on the rules. Players who understand scoring play better and argue less. Cover at least:
- Only the player whose turn it is can type, run and submit.
- Run checks the example tests and never scores. Submit is judged on hidden tests.
- Partial credit: passing some hidden tests earns part of the points.
- How ties are broken, and when the match ends.
5. Running the day
- Test the room a few minutes early with a couple of players.
- Share the room code or invite link on a screen, and check every seat is filled before you start.
- If you are organising rather than playing, create the room as a host who does not play. You get a live leaderboard and can see who is coding, without seeing any team's code.
- Ask players to use one browser tab each. A player who disconnects can rejoin from the same browser and keeps their seat.
6. After the match
Show the final standings, then spend a few minutes on the problems. Ask the winning team how they split the work. Short discussions like this are where most of the learning happens, and they make players want to come back for the next contest.