Code Race: You Against a Ghost
Coding Typing Game
A free coding typing game on real source code. Pick a language and a ghost, type the code before the ghost does, then send a friend a link to race a replay of your run. No signup required.
- Time
- –
- WPM
- –
- Accuracy
- –
- Lead
- –
- 9 languages of real code
- Ghosts from 25 to 70 WPM
- Share a race by link
- No signup needed
How it works
A Code Typing Race in Three Steps
A race is one snippet of real code, typed once, against an opponent you can see. There is nothing to install and nobody to wait for.
1. Pick a ghost
Choose a language and a pace. Most developers type real code at 30 to 45 WPM, so the 40 WPM ghost is a fair first opponent.
2. Type the code
The clock and the ghost start on your first key press. The amber underline shows where the ghost is, and the race ends when you reach the last character.
3. Send your run
After a run that counts, copy the link. Whoever opens it races a replay of your run on the same code, then sends theirs back.
How a Race Is Scored
The rules are the same as the rest of TurboType, so a race result means the same thing as a test result.
Only correct characters count
Speed is correct characters divided by five, per minute. Wrong characters you leave in add nothing, so mashing keys to the end loses.
80% accuracy to count
Accuracy is the share of key presses that were right, and a corrected mistake still counts against it. Under 80%, the run cannot win or be shared.
The higher WPM wins
With clean typing that is whoever reaches the end first. Equal speeds, to the nearest word per minute, are a dead heat.
Leaving pauses the race
Switch tabs or windows and the clock stops, and the ghost waits with it. Both start again on your next key press.
From racing to practice
Lost to the Ghost? Practice the Code It Beat You On.
Every race snippet comes from the practice tracks. Working through a track builds the symbols and patterns of that language into your hands, which is what wins the next race.
Start Structured PracticeCoding Typing Game FAQ
How the ghost works, how to race a friend, and how the winner is decided.
What is a coding typing game?
A typing game where the text is real source code instead of words or sentences. In this one you race a ghost through a snippet in one of nine languages, so you practise brackets, operators and indentation while trying to reach the end first.
How does the ghost work?
The ghost is your opponent's progress drawn on the same code: a bar on the track above the editor, and an amber underline in the text itself. A pace ghost moves at one steady speed that you choose, from 25 to 70 WPM. A shared ghost replays a real run, including the places where that typist slowed down. The ghost starts on your first key press and stops whenever your clock stops.
Can I race a friend?
Yes. Finish a race, copy the link under your result and send it. Your friend types the same code against a replay of your run, and can send their own run back. It is not live: each of you can race whenever you like.
Is this a live multiplayer typing race?
No. There are no rooms or lobbies, and nobody types at the same moment as you. Every race is against a recorded run or a steady pace, which is why it works from a plain link with no account.
How is the winner decided?
By words per minute, where one word is five characters and only correct characters count. Mistakes left in the code lower your speed, so reaching the end first with errors can still lose. A run under 80% accuracy does not count and cannot be shared.
Which languages can I race in?
JavaScript, TypeScript, Python, Java, C, C++, Rust, PHP, and HTML & CSS. Each race uses one exercise from that language's practice track, between 100 and 450 characters long.
Do I need an account to play?
No. The game runs in your browser with no signup, and a shared race is carried entirely by its link. A free account is only needed to save progress across the structured practice chapters.
Does the typing game work on a phone?
It needs a physical keyboard, so it is built for a laptop or desktop. On a phone the page explains this instead of starting a race.
