# Baize Break: 3D Nine-Ball Pool With Real Spin

> Play hotseat nine-ball on a 3D table, in one offline HTML file: place the cue ball, aim with a guide line, set power and draw, follow or side spin, and watch the cue ball slide, roll, bounce off cushions and drop into pockets. Fouls give ball in hand and a legal pot of the 9 wins the rack. The physics, table, balls and sound are all written in code.

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

## What you get

Bring the table look and room, and optionally the physics feel, the rules, the camera and the HUD text. The Skill returns a downloadable Skill (the pool game project, a customize guide, headless verification) and one playable example table.

## Install

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

```text
/baize-break make a pool game on <your table> in <your room>
```

## How it works

1. **Copy the nine-ball table** Baize Break begins with node scripts/new-project.mjs --out my-pool on Node 22.4 or later. Your coding agent reads references/customize.md, which maps cloth and room colours, physics feel, table and pocket geometry, rules, HUD copy, cameras and sound to files and symbols. A prompt can be as short as: make a pool game on a green slate table in a wood-panelled bar room.
2. **Tune numbers, physics and rules** Numbers live in src/config.js, while physics and rules are plain modules in src/physics/ and src/rules/ with no three.js or DOM. For livelier spin, raise PHYS.strike.spinGain and PHYS.cushion.spinThrow. Pocket coordinates are coupled to TABLE.pocket. The table, balls, cue, room and sounds are all made in code, and any added asset must be listed with its licence in CREDITS.json.
3. **Build and replay the test shots** npm ci and npm run build:single produce dist-single/index.html, under 8 MiB with no network, storage or WebAssembly. npm run shoot needs Chrome or CHROME_PATH and replays the break, draw, follow, side-spin, scratch, winning 9 and rematch steps, writing shots/report.json with screenshots. The spin steps read real impact velocities, so a wrong tuning fails. All checks must pass.

## FAQ

### What does Baize Break let two players do?

Baize Break is a 3D nine-ball pool game for two players taking turns on one device. You place the cue ball, aim along a guide line with a ghost-ball contact marker, set power, pick the contact point for side spin, draw or follow, set cue elevation and strike. Banners, turn, score and target chips update after every shot.

### Does Baize Break follow real nine-ball rules?

Yes. Baize Break makes you hit the lowest ball first, and fouls such as a scratch, no contact, wrong ball first or no rail after contact hand the other player ball-in-hand. A 9 potted on a foul is respotted, and a legal 9 wins the rack. The foul table is Game.resolveShot() in src/rules/nineball.js.

### Can Baize Break play against the computer?

No. Baize Break is two-player hotseat only, with no AI opponent and no online multiplayer. It also does not claim to simulate a specific real table. The cloth friction, ball and cushion constants come from published cue-sports research, and the rest is tuning in src/config.js.

### Does Baize Break need a GPU or a model key?

Baize Break needs no model key and makes no network calls, so playing it does not bill anything. It renders with three.js and WebGL. On a machine without a GPU, shoot falls back to SwiftShader, which may drop below the 30 fps floor that the checks expect.

### Can Baize Break do jump or massé shots?

No. Baize Break models cue elevation as a loss of pace plus a visual pitch of the cue, with no jump or massé curve, so the ball stays on the cloth. If you need those shots, the physics modules in src/physics/ would have to be extended and new verify steps written.

### Can I play Baize Break with only the keyboard?

Yes. In Baize Break the left and right arrows aim, with Shift for fine adjustment, and Space hits or places the cue ball. Z or C switches between the aim and top cameras, and N starts a new match. On a phone you drag on the table to aim, set power on the bar and tap Hit.

## Examples

- Baize Break pool game (scene)
- Nine-Ball Break (video)
