Sand AISand AI MAGI-2MAGI-2 现已上线 SandBase:支持原生音频的 1080p 视频立即试用

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.

示例

Kolam Stack interactive falling-block puzzle
在新标签页中打开

Kolam Stack interactive falling-block puzzle

该示例在沙盒化的框架中运行,无法访问此页面。

在线运行

在 SandBase sandbox 中运行,并在 Lab 中查看结果。

在 Lab 中打开 ↗

你将获得什么

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.

工作原理

  1. 01

    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. 02

    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. 03

    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.

常见问题

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.

Lab Skill · Games

Seagull Swoop

Build a 3D flight-and-delivery game with light fries, heavy fish, crosswinds and optional ring routes. The gull must bring lunch home; cargo weight changes which openings it can safely reach.

Lab Skill · Games

Wedding Cake Wobble

Build a 3D fragile-cargo delivery game around a wobbling wedding cake. Brake before turns, avoid crossing guests and steer around tables. Lost tiers change the score, while a partial delivery can still succeed.

Lab Skill · Games

Hermit Tide

Build a 3D route-and-timing game where a hermit crab changes shells to cross a tidal shore. Narrow gaps favour the cap, stronger shells resist waves, and dry stones provide shelter and checkpoints.

Lab Skill · Games

Clover Circuit: Estate Cut

Drive a coral ride-on mower through a fenced estate garden. Steering, braking and the moving blade cut actual grass tufts; Overview reveals the genuine trail. Edit three gardens and three scene palettes offline. Coverage counts trimmed tuft centers rather than continuous ground area.

Lab Skill · Games

Glide Gates: Lagoon Run

Flap a golden bird through emerald pipe pairs above a turquoise lagoon. Actual fixed-step gravity, swept circle contacts and full-gate scoring power both manual flight and clearly labeled practice. Edit three courses and three scene palettes offline.

Lab Skill · Games

3D Interactive Garden Islands

Walk a curved garden, harvest fruit, share gifts, catch butterflies, fish, grow flowers and craft furniture. Four lighting states and one offline HTML with bilingual keyboard and touch controls.