Rules
How a match is decided
Both players in a match are scored on the same 100-point rubric. Coding and AI Assisted rounds are graded purely by running your Python code against hidden test suites covering correctness, edge cases, and scale under CPU time and memory limits (time complexity isn’t graded directly, though slow solutions will time out on scale tests). System Design is graded entirely by an AI judge against the challenge’s rubric, while OOP and Code Review mix automated tests with an AI judge (class design in OOP; review comments in Code Review, though fixing a bug in code automatically credits you for finding it).
Whoever scores higher wins the match. You can forfeit at any time, which ends the match immediately as a loss. If time runs out while your code earns fewer test points than your last Run all tests submission, we grade that earlier snapshot too (keeping your latest comments in Code Review) and count whichever version earns the higher total score.
If both players end up with the exact same total score, whoever clicked Finish earlier wins, compared in whole seconds from match start. Letting the clock run out — or clicking Finish in the final 10 seconds — counts as using the full time limit, so tied matches don’t come down to a last-second clicking race.
If you’re still tied — either because both players clicked Finish in the same second or both ran out the clock — the match goes to sudden-death overtime: up to 3 multiple-choice follow-up questions on the same problem, with 30 seconds each. The first question only one player answers right decides the match. If grading finishes more than 2 minutes after the match ended, overtime is skipped and the match settles as a draw. If you’re still tied after all 3, the match ends in a draw.
A match is ruled Void (no Rating change for either player) if neither player scores above the untouched starter code, or if the match couldn’t be graded.
Scoring
- Tests-only rounds
- Coding and AI Assisted are graded 100% by Python sandbox tests, with no AI judge. Tests use CPU time rather than wall-clock time so server load doesn’t cause false timeouts, and final grading gives every test 1.25× its mid-match CPU budget so a passing test run won’t flake on a tight margin at the end.
- AI Assisted
- In AI Assisted rounds, an in-app assistant (built-in or your own API key) is part of the workspace. The model used, prompt count, and prompt transcript are visible to both players on the result screen.
- AI-judged criteria
- In OOP, System Design, and Code Review, the AI judge evaluates each written criterion and specific wrong-claim pitfalls that deduct points across judged rounds. To prevent hallucinated credit or penalties, every awarded item or pitfall requires an exact quote verified in what you wrote or drew — no verified quote, no points. The model never adds up scores; our own code sums everything and clamps the total to 0–100.
- What counts
- Any technically sound approach that solves the requirement counts — you don’t need to match our reference solution’s stack or phrasing. You will not be awarded any points for listing options without committing, naming buzzwords without explaining what they do here, or hedging (“maybe”, “could”, “if needed”, etc.). In Code Review rounds, if you add a comment, you have to name the specific fault (e.g., just vaguely stating that something looks wrong will not be awarded any points).
- Second look
- After both players are graded independently, any judged criterion or pitfall where the two players received different verdicts gets a side-by-side second pass so the same standard is applied to both answers. This pass is raise-only: it can award missed credit or remove a wrong penalty, never take points away.
- Quality check
- AI-judged challenges only enter rated play after passing a blind benchmark: we test the judge against sample answers written without seeing the rubric and graded by humans. A challenge must hit at least 95% item agreement with human labels and pick the right winner in every clear matchup.
Rating and the ladder
Everyone starts with a hidden Rating of 1500 and remains unranked until they finish their 5 placement matches. Ratings move using Elo against your opponent’s Rating, with bigger swings early on that settle down as you play: up to 120 points per match in your first 5 rated matches, 48 in matches 6–25, and 24 after that. Once you’re ranked, matches against a live opponent who is still Unranked move your Rating half as much. Every rated win earns at least +1 (at most once per opponent per UTC day), even when you’re heavily favored. To keep new accounts from spiking overnight, net Rating gain is capped at +500 per UTC day during your first 50 rated matches (a win capped down to +0 doesn’t count toward those 50 matches, and losses are never capped).
Tests-only rounds (Coding and AI Assisted) move Rating in full because test scores are exact. In AI-judged rounds (OOP, System Design, and Code Review), the Rating change scales with the score gap: full stakes from a 20-point margin and up, scaling down proportionally below that to a 25% floor so a narrow judged call doesn’t swing a full match. Any match decided in overtime moves at 25% across every round type. Forfeits always count in full.
When nobody is online to play, you will be matched against a ghost (a replay of a previous player’s submission), or a bot. In both cases, only your own rating will change. Bot matches count for Rating up to 2000. Starting at 1900, expert bots play the strong reference answer with faster thinking times as you climb (80% at 1925, 60% at 1950, 40% at 1975, and 25% at 2000), pairing you with the first step above your Rating. Once you’re strictly above 2000, a match against the top bot is unrated and doesn’t count as active play — climbing past 2000 requires beating live players or high-scoring ghosts.
If you’re dealt a question you’ve already played before, the match is still rated, but your Rating is treated as temporarily higher for that match’s Elo calculation: +400 on the same day, halving toward a +75 floor every 14 days (+305 after a week). Your opponent’s history counts the same way, so if you both played it equally recently, the adjustments cancel out (bots and ghosts never get one). Private friend duels, rematches, and challenges not yet certified for rated play never change Rating.
The leaderboard lists active players with a rated match in the last 14 days (Unranked players show placement progress until their fifth rated match), alongside labeled AI benchmark models. Above 2000, standing has to be maintained: after 8 days without a rated match (unrated matches above the bot ceiling don’t count), your Rating decays by 10 points per day until you play again or return to 2000.
Fair play
- Outside help
- Write your answer yourself in the SWEArena editor. External AI tools, outside editors, pre-written solutions, and help from another person are not allowed outside AI Assisted rounds.
- Result transparency
- On non-AI-Assisted rounds, settled results and public share links show a content-free activity replay of how the answer took shape.
- The mark
- Repeated high-confidence detections — a scoring answer in place before the prompt could be read — in a third rated match within 30 days put a “!” mark beside your name. Playing 20 clean rated matches clears it. Questions you have played before are exempt.
- Unreadable answer
- You will not earn points on AI-judged criteria for any submission that two different judge models refuse to grade while the judge is reading other answers normally. The same applies to any refused submission after your third in a single UTC day. The match still counts as rated.
- Ready check
- Declining or missing ready checks within 30 minutes adds an escalating queue cooldown: 0 s · 30 s · 1 min · 2 min · 5 min (5 min max).