Learn the rules, token colors, hints, and practice flow before you start solving code patterns.
Core Loop
Guess the hidden code pattern in six attempts.
Codle gives you a programming prompt, a language, a difficulty, and a target token count. Each guess is a single code pattern. After you submit, the game checks the structure and shows exactly which tokens are locked, misplaced, or rejected.
The token is correct and already in the right position.
name
Yellow means misplaced.
The token belongs in the answer, but not in that slot.
else
Gray means rejected.
The token is not currently matched by the target pattern.
Daily vs Practice
Daily mode
Daily mode gives everyone the same deterministic challenge for the date. It is built for streaks, sharing results, and one focused puzzle per day.
Practice mode
Practice mode starts fresh random puzzles on demand. Use it to learn feedback patterns, test syntax instincts, and build speed without waiting for tomorrow's daily.
Placeholder Tokens
Some challenges care about the shape of the code more than the exact variable name or literal. Placeholder tokens let Codle accept equivalent structures while still checking consistency.
__IDENT__Any valid variable or function name__STRING__A quoted string literal__NUMBER__A numeric literal__BOOLEAN__A true or false literal__VALUE__An identifier, literal, or expression value
Supported Languages
Codle currently includes JavaScript, TypeScript, Python, and C++ puzzles. JavaScript, TypeScript, and Python challenges can use parser-backed structural checks, while C++ puzzles use token-pattern validation.