Code TypeRacer

Type real code snippets as fast as you can. Tracks WPM, accuracy, and highlights mistakes in real time.

0
WPM
100%
Accuracy
0.0s
Time
Python
Language
You
0 wpm
Slow & Steady
13 wpm
Pace Setter
21 wpm
Mechanical Keys
24 wpm
from dataclasses import dataclass, field
from typing import List, Optional


@dataclass
class Task:
    title: str
    done: bool = False
    tags: List[str] = field(default_factory=list)
    priority: int = 0


class TaskList:
    def __init__(self) -> None:
        self.tasks: List[Task] = []

    def add(self, title: str, priority: int = 0) -> Task:
        task = Task(title=title, priority=priority)
        self.tasks.append(task)
        return task

    def complete(self, title: str) -> bool:
        for task in self.tasks:
            if task.title == title:
                task.done = True
                return True
        return False

    def pending(self) -> List[Task]:
        return [t for t in self.tasks if not t.done]

    def top(self, n: int = 3) -> List[Task]:
        sorted_tasks = sorted(self.pending(), key=lambda t: -t.priority)
        return sorted_tasks[:n]


if __name__ == "__main__":
    tasks = TaskList()
    tasks.add("write tests", priority=5)
    tasks.add("ship feature", priority=10)
    tasks.add("read pr", priority=3)
    for t in tasks.top():
        print(t.title)

Top racers · Code

About Code TypeRacer

Code TypeRacer is a free typing-speed test built for developers: instead of prose, you race to type real code snippets accurately. It measures your words-per-minute and accuracy on the punctuation, symbols, and indentation that actually slow programmers down.

How to play

Type the shown snippet exactly — including brackets, semicolons, and whitespace — as fast as you can. Your WPM and accuracy update live. Tip: accuracy beats raw speed; a single typo forces a correction that costs more time than typing carefully in the first place.

FAQ

How is coding WPM different from normal typing speed?

Code is dense with symbols and shifts (, (), =>), so most people type it noticeably slower than plain English — which is exactly what this measures.

Which languages are included?

Snippets span common languages like JavaScript, Python, and more, so you practice the syntax you actually use.

SharePost

More games like this