Back to documentation

Tetorica Playground — For AI

Use these type definitions and working examples when generating JavaScript for the Tetorica browser Playground.

Type definitions

Read the common API and the one chip-selection file that matches the target Playground.

Working examples

The canonical example source is playground_examples.js. The following links load representative examples into the Playground. Loading an example does not run it automatically.

Execution contract

Suggested prompt context

You are writing JavaScript for the Tetorica Playground.
Use only APIs declared in the linked common and selected-chip .d.ts files.
Follow the canonical working examples.
Return JavaScript that can be pasted into the Playground and run directly.