Lab

The Lab is a sandbox for exploring games without creating a server-side game record. Route: /playground (alias: /lab redirects here).

Deep link from game pages

Helpers live in playgroundLaunch.js.

Key files

File Role
Lab/Lab.js Main lab page
Lab/LabLauncher.js Game selection and session start
Lab/LabSession.js Active lab session
Lab/LabSaveModal.js Save / update / save-as-new dialog
Lab/Board.js Board rendering
Lab/GameTree.js Move tree navigation
src/lib/Lab/ Game building, storage, settings
src/lib/Lab/savePayload.js Shared save body format
src/lib/Lab/playgroundSavesApi.js Cloud save CRUD

Behaviour

Overlap with GameMove

Lab reuses renderer and gameslib patterns from the live game page but does not call move-submission auth queries. Display settings helpers are shared via src/lib/Lab/settings.js.

Move tree / move table: Lab and live use separate React components but share much of src/lib/GameMove/ (layout, variations, column filter). Playground-only shims live under src/lib/Lab/labMoveTable*.js. See Lab and Game Move coupling before changing shared move-table code.

Related