Loading Code to Play
Code to Play logo
Documentation

Quick start

Write code, watch the status bar, and spend plays on in-editor games.

After install, write real code in a supported file. Meaningful lines count toward unlocks — comments, blanks, and brace-only lines do not.

Status bar

  • While locked: 450/1000 lines
  • When unlocked: remaining plays, default 5 plays

Default unlock is 1000 meaningful lines for 5 plays, shared across every game.

Spend a play

  1. Open the Code to Play view in the Activity Bar.
  2. Pick a game (Whack-a-Bug or Debug Snake, or Pro: Call Stack, Merge Conflict, and Kernel Panic). All have difficulty levels.
  3. Spend a play. Games open as a webview, so your files and cursor stay where they were.

What counts as a line

Function and class declarations, assignments, control flow, method calls, and import or export statements. Comments, JSDoc, blank lines, and lines that are only braces are skipped.

Tracked languages

JavaScript, TypeScript, Python, C++, Rust, Go, Java, Ruby, and more. If a file type is not tracked, the status bar will not move for that file. See the full list in TRACKEDEXTENSIONS.md.

Stats and scores

High scores, stats, and play counts stay on your machine unless you opt in on the dashboard Analytics page. You do not need a network connection or an account to play. Sign in from the activity bar is optional.