# Kolam Stack: Threshold at Dawn

> Play a falling-block puzzle whose board is drawn as a sikku kolam line pattern: joined cells cross into a diamond lattice and free sides loop around the dots.

- Type: Lab Skill (downloadable Agent Skill)
- Category: [Game creation](https://www.sandbase.ai/skills/games)
- Version: 0.1.0
- Runs online: yes
- Page: https://www.sandbase.ai/skills/games/kolam-stack

## What you get

Bring a board size, the pieces, the line style (loop bulge, dot size, line width) and an optional palette. The Skill returns a downloadable Skill, an interactive demo and an example video.

## Install

Download the Skill package from https://www.sandbase.ai/skills/games/kolam-stack (sign-in required), unzip it into your agent's skills folder, then ask your agent to use it:

```text
/kolam-stack build a playable falling-block puzzle on <your board size> with <your pieces>, drawn as a dot-grid line pattern where joined cells cross into a diamond lattice and free sides loop around the dots, with hold, ghost, line-clear ripples and touch controls, in English and Chinese
```

## How it works

1. **Fill the board prompt** Kolam Stack fills a prompt from slot files: node scripts/fill-prompt.mjs --slots assets/prompts/examples/threshold-dawn.json --out prompt.md. The Threshold at Dawn example is a 10 by 20 board with seven four-cell pieces in English and Simplified Chinese. node scripts/new-project.mjs --out my-kolam-stack copies the game for your coding agent, which needs Node 22.4 and npm.
2. **Edit pieces, bag and lines** Board size, pieces, bag, rules, line style, palette, opening rows and cover plan live in src/kolam.json. Geometry and 4-bit connectivity masks are in src/kolam.mjs, rules and autoplay in src/sim.mjs and drawing in src/world.ts. Joined sides cross as an X into a diamond lattice, and free sides loop around the pulli dot. A second brief, indigo-steps, uses an 8 by 16 board.
3. **Build and run both checks** npm run build:single writes one offline HTML file, and npm run shoot -- --file dist-single/index.html runs the browser checks and writes bilingual reports. Logic tests confirm all 16 mask shapes, rotation invariance, a fair bag and line clears that shift rows. Version 0.1.0 passed 13 interactions, including hold, ghost, the weave and ink toggles, swipe and the compact embed.

## FAQ

### What is Kolam Stack?

Kolam Stack is a falling-block puzzle whose board is drawn as a sikku kolam line pattern on a dot grid. Pieces fall from a shuffled bag; you move, rotate, soft or hard drop and hold one piece, with a ghost of the landing row. A full row brightens and fades while a ripple runs through the lattice and rice-flour specks scatter.

### Are Kolam Stack patterns traditional kolam designs?

No. Kolam Stack draws a simplified, game-driven line grammar in which the lines follow how cells on the board are joined. The result is not a traditional design and need not form one closed line. Kolam itself is a South Indian tradition, especially in Tamil Nadu, often drawn at dawn in rice flour at a home's threshold.

### Why do Kolam Stack lines change when a piece lands?

Kolam Stack joins a falling piece only within itself. Once it locks, its cells join their neighbours by the weave rule, so loops on touching sides turn into crossings. The by-piece weave toggle keeps each placement separate instead.

### Is Kolam Stack accessible?

Kolam Stack is designed toward WCAG 2.2 AA. It plays fully from the keyboard on a focusable board with a visible focus ring, every control is a labelled button, the game pauses, a live region announces score and lines, and reduced motion removes the ripple and flour. Full conformance still needs assistive-technology testing and expert review.

### What are the Kolam Stack touch and keyboard controls?

Kolam Stack uses arrows or WASD to move and rotate, Z to rotate the other way, Down to soft-drop, Space to hard-drop, C or Shift to hold and P or Escape to pause. On touch, tap rotates, sideways swipes move one column per cell, drag down soft-drops and a flick hard-drops. Sound starts muted.

### Does Kolam Stack call any model or paid API?

No. Kolam Stack needs no keys, model calls, external assets or storage, so playing it puts nothing on your SandBase account. Invalid pattern data fails with a stable kolam_ error code, a canvas startup failure is reported on the page, and missing Chrome only stops screenshot verification.

## Examples

- Kolam Stack interactive falling-block puzzle (scene)
- Threshold at Dawn (video)
