简体中文 · 繁體中文 · English · Deutsch · Español · Français · Tiếng Việt · Русский · Українська · العربية · 日本語 · 한국어
A game for learning programming with Tolang.
Read code, predict its result, change it, and solve new problems without a template.
Arcade district · First steps · Advanced path · Leaderboards
Explore two rows of four shops: six games and two learning entrances. Play falling blocks, tank defence, a vertical shooter, Snake, brick breaking and box pushing. Use buttons to learn the controls, then call the handheld's functions from Tolang. Signed-in players can start a recorded run, save a verified score and earn one-time Star Coin achievements. Learning rewards are checked by the server; progress backups remain an explicit user action.
The beginner path has eleven runnable exercises: display a number, change it, repair an error, calculate, bind a name, check a score, choose a cartridge, move and fire in order, repeat a move, end a game and write an automatic block-placement strategy. The advanced path combines nine multi-input diagnostics, function and message examples, and strategy goals for all six games. Existing drafts and earlier exercises remain accessible.
Thirteen missions cover programming foundations, Tolang conditions, loops, functions and replies, then messages and joint receives. Each mission includes prediction, explanation, modification and an independent task; the original four also retain their flight exercises. The course and interface support 12 languages, in the same order as shixilin.com. Programs run locally in a bounded teaching interpreter, not the full Tolang compiler or TVM. Independent tasks check actual output and the requested concepts that contribute to it; typing speed does not affect grades.
The playground includes a programmable pixel handheld with falling blocks, tank defence, a vertical shooter, Snake, brick breaking and box pushing. Run choose(1); start(); to select and start a cartridge; pause() and finish() control its lifecycle. The main console sends ordered commands. Automatic strategies alone receive a fresh game-state snapshot every 250 ms. These functions belong to the handheld host, rather than the Tolang standard library. The six games keep their current round in this page session; course progress and existing game saves retain their established storage.
Independent challenges include a 100-point code assessment with execution, output and requirement feedback. Revise and resubmit; typing speed and matching an example do not affect the grade.
The fourth mission turns program output into a plane’s flight distance. Run a program, watch where the plane lands, then change the calculation.
npm test
npm run build
npm run devCheck formatting changes with git diff --check. There is no separate lint task.
Optional accounts use an isolated Better Auth service on the owner's Mac mini. Games and learning progress remain local to the browser. See the deployment and reuse plan for setup, validation and current limits.
The interface, lessons, questions, hints and errors use the selected language. Chinese names are 环灵 and 環靈; all other languages use Loopuff. Code identifiers and punctuation stay unchanged. Arabic text uses right-to-left layout, while code remains left-to-right.
PolyForm Noncommercial 1.0.0. Commercial use requires separate written permission.
Created by Shixi Lin.