bagh-chal
A compact 3D Bagh-Chal board game where goats trap tigers before five goats are captured.
About this tile
Bagh-Chal is a local two-player Poe app for Tigers and Goats. Four tigers start on the corners of a 5x5 line board. Goats move first by placing the herd one at a time, then move along the board after all 20 goats have been placed.
This package implements a deterministic, compact ruleset: pieces move along printed board lines, tigers may capture by jumping over one adjacent goat to an empty point on the same line, goats win by trapping every tiger so no tiger can move or capture, and tigers win immediately after capturing five goats. The in-app help describes these exact rules.
The app uses synced-store for persistent turn state and renders a polished Three.js board with touch-sized point targets, selected-piece rings, legal move markers, capture highlights, score, reserve count, and a top-right help dialog. The layout is tuned for Poe iframes, including a 300 by 500 phone-shaped viewport.
Development
bun run doctorchecks the local app toolchain.bun run type-checkruns TypeScript.bun run testruns synced-store and happy-dom unit tests.bun run buildbundles the Poe app.bun run test:playwrightbuilds and runs Playwright E2E coverage.bun run screenshotregeneratesassets/screenshot.png.
This package is configured with Poe handle bagh-chal and package name @boardgames/bagh-chal.