@vibes.diy/prompts 14.3.285 → 14.3.287

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,2 @@
1
+ import type { LlmConfig } from "./types.js";
2
+ export declare const chessVariantsConfig: LlmConfig;
@@ -0,0 +1,12 @@
1
+ export const chessVariantsConfig = {
2
+ name: "chess-variants",
3
+ label: "Chess variants",
4
+ description: "Load it for chess on anything but the standard 8×8 rules — minichess on 5×5 or 6×6 boards, pawns-only games, " +
5
+ "atomic, crazyhouse, antichess, horde, three-check, King of the Hill, Chess960, shogi, xiangqi, new pieces, and a " +
6
+ "chess club's own invented variant. Rules from Fairy-Stockfish's ffish library, a variant written in a few lines " +
7
+ "of config, and a Fairy-Stockfish engine opponent in a Web Worker at any strength, on a board of any size.",
8
+ needs: ["board-games"],
9
+ cues: ["chess variant", "chess variants", "minichess", "fairy chess", "fairy-stockfish", "crazyhouse", "atomic chess", "antichess", "pawn wars"],
10
+ teaches: ["ffish", "fairy-stockfish-single"],
11
+ };
12
+ //# sourceMappingURL=chess-variants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chess-variants.js","sourceRoot":"","sources":["../../jsr/llms/chess-variants.ts"],"names":[],"mappings":"AAQA,MAAM,CAAC,MAAM,mBAAmB,GAAc;IAC5C,IAAI,EAAE,gBAAgB;IACtB,KAAK,EAAE,gBAAgB;IACvB,WAAW,EACT,+GAA+G;QAC/G,mHAAmH;QACnH,kHAAkH;QAClH,2GAA2G;IAE7G,KAAK,EAAE,CAAC,aAAa,CAAC;IACtB,IAAI,EAAE,CAAC,eAAe,EAAE,gBAAgB,EAAE,WAAW,EAAE,aAAa,EAAE,iBAAiB,EAAE,YAAY,EAAE,cAAc,EAAE,WAAW,EAAE,WAAW,CAAC;IAChJ,OAAO,EAAE,CAAC,OAAO,EAAE,wBAAwB,CAAC;CAC7C,CAAC"}
@@ -0,0 +1,445 @@
1
+ # Chess variants — small boards, odd pieces, a club's own rules, and an engine that plays them
2
+
3
+ Load this for chess on anything but the standard rules: 5×5 Gardner and 6×6 Los Alamos
4
+ minichess, Pawn Wars and other pawns-only games, atomic, crazyhouse, antichess, horde,
5
+ three-check, King of the Hill, Chess960, shogi and xiangqi, and a variant a club invents. It
6
+ stands on the board-games skill, which owns the board's look, turns, seats and who sees what.
7
+ Standard chess on 8×8 is the chess skill's (`chess.js` and Stockfish); this doc replaces both for
8
+ every other game:
9
+
10
+ 1. **The rules come from ffish**, Fairy-Stockfish's rules library, in a Web Worker. It knows
11
+ about 120 variants by name and reads a new one from a few lines of text, so an app never
12
+ writes a move generator, even for a piece nobody has played before.
13
+ 2. **The computer opponent is fairy-stockfish-single**, the Fairy-Stockfish engine built to run on
14
+ one thread, in a second Web Worker. It plays every variant the rules worker knows, at any
15
+ strength, and keeps the page responsive while it thinks.
16
+ 3. **A club's own variant is a variants.ini section**, loaded into both workers from the same
17
+ string, so the board and the engine always agree on the rules.
18
+
19
+ ## The rules — ffish in a Worker
20
+
21
+ `ffish-es6` loads from unpkg as an ES module. Run it in a module Worker built from a blob, as the
22
+ worked example's `lib/variants.js` does, and ask it for positions by message.
23
+
24
+ ```js
25
+ const ff = await (await import("https://unpkg.com/ffish-es6@0.7.10/ffish.js")).default({
26
+ locateFile: (f) => "https://unpkg.com/ffish-es6@0.7.10/" + f,
27
+ });
28
+ ff.loadVariantConfig(iniText); // adds the variants in a variants.ini string
29
+ const board = new ff.Board("gardner"); // or new ff.Board("gardner", fen) — never pass undefined
30
+ board.legalMoves(); // "a2a3 b2b3 …": UCI moves, space-separated
31
+ board.sanMove("b1c3"); // "Nc3", for the move list (ask before pushing it)
32
+ board.push("b1c3"); // false when illegal
33
+ board.fen(); board.turn(); // true when White is to move
34
+ board.isCheck(); board.isGameOver(); board.result(); // "1-0", "0-1", "1/2-1/2" or "*"
35
+ board.delete(); // boards live in WebAssembly memory until deleted
36
+ ```
37
+
38
+ - **The game is its UCI move list.** Store `moves: ["c2c3", "b4c3", …]` and the variant's id;
39
+ replay them on a fresh `Board(variant)` for every position. Ranks can have two digits on big
40
+ boards (`a10a9`), a promotion adds the piece letter (`b4b5q`), and a drop reads `P@e4`.
41
+ - **A move is legal when it is in `legalMoves()`.** The board's highlights come from the moves that
42
+ start on the tapped square, and the engine's reply and a friend's move go through the same list.
43
+ - **Promotion asks when the rules offer a choice.** Several legal moves with the same from and to
44
+ squares are a promotion: show one button per piece. Gardner promotes to queen, rook, bishop or
45
+ knight; a variant that allows one piece gives one move and needs no picker.
46
+ - **`new ff.Board(variant, undefined)` throws** inside the worker, and a throw in an async
47
+ `onmessage` reaches neither `onerror` nor the page. Pass a FEN only when there is one, and post
48
+ errors back as a message, as the example does.
49
+
50
+ ## A club's own variant
51
+
52
+ A variant is an ini section that names a built-in parent and changes what differs. Fairy-Stockfish's
53
+ [variants.ini](https://github.com/fairy-stockfish/Fairy-Stockfish/blob/master/src/variants.ini)
54
+ documents every option; these cover most club inventions:
55
+
56
+ | Option | What it sets |
57
+ | --- | --- |
58
+ | `startFen` | the starting position, which also sets the board size with `maxRank`/`maxFile` |
59
+ | `maxRank`, `maxFile` | a board up to 12 files by 10 ranks |
60
+ | `king = -` | no king, so no check or mate: the game is won another way |
61
+ | `castling`, `doubleStep` | turn castling or the pawn's two-step off |
62
+ | `promotionPieceTypes` | what a pawn may become, such as `q` or `nbrq` |
63
+ | `flagPiece`, `flagRegionWhite`, `flagRegionBlack` | a race: getting that piece to that region wins (a pawn that promotes on arrival is already the promoted piece, so name that) |
64
+ | `extinctionValue`, `extinctionPieceTypes` | losing all of those pieces decides the game |
65
+ | `checkCounting` | win by giving a number of checks (the FEN carries the count) |
66
+ | `mustCapture` | captures are compulsory, as in antichess |
67
+ | `stalemateValue` | stalemate wins or loses instead of drawing |
68
+ | `customPiece1 = a:NB` | a new piece, letter `a`, moving in Betza notation (here knight plus bishop) |
69
+
70
+ ```ini
71
+ [pawnwars:chess]
72
+ startFen = 8/pppppppp/8/8/8/8/PPPPPPPP/8 w - - 0 1
73
+ king = -
74
+ castling = false
75
+ extinctionValue = loss
76
+ extinctionPieceTypes = *
77
+ flagPiece = q
78
+ flagRegionWhite = *8
79
+ flagRegionBlack = *1
80
+ promotionPieceTypes = q
81
+ ```
82
+
83
+ The section name is the variant's id for `new ff.Board("pawnwars")` and for the engine's
84
+ `UCI_Variant`. Load the same string into both workers.
85
+
86
+ ## The opponent — fairy-stockfish-single in a Web Worker
87
+
88
+ The published Fairy-Stockfish engines are multi-threaded and need `SharedArrayBuffer`, which a
89
+ vibe's page does not have. `VibesDIY/fairy-stockfish-single` is the same engine built for one thread
90
+ (1.1 MB of WebAssembly, from jsDelivr), and it loads the way the chess skill's Stockfish does:
91
+
92
+ - **A blob worker `importScripts` the engine, and the `.wasm` address rides in the worker URL's
93
+ `#hash`**: `new Worker(`${blobUrl}#${encodeURIComponent(wasmUrl)}`)`.
94
+ - **Custom variants go in as an object**: `worker.postMessage({ variants: iniText })`. Every other
95
+ message is a UCI line: `setoption name UCI_Variant value pawnwars`,
96
+ `position startpos moves c2c3 b4c3`, then `go movetime 400`.
97
+ - **Every `go` carries a limit** (`movetime`, `depth` or `nodes`). The engine thinks on the worker's
98
+ only thread, so a `stop` waits until it is done; an unlimited `go` searches for two seconds.
99
+ - Strength is `Skill Level` (0 to 20) and the thinking time, as in the chess skill. The reply is a
100
+ UCI move from `legalMoves()`; append it to the move list.
101
+ - **When the engine cannot load**, the promise rejects: keep playing with a random legal move and
102
+ say "Engine offline".
103
+ - **Credit it.** ffish and the engine are GPL-3 and run unmodified in their own workers; a muted
104
+ line under the board says "Rules and engine: Fairy-Stockfish (GPL-3)".
105
+
106
+ ## Drawing the board — any size
107
+
108
+ Draw the board-games SVG board from the FEN, whatever its size: `parseBoard(fen)` in the example
109
+ reads the rows (top rank first) and counts the files, so the same component draws 5×5, 6×6, 8×8
110
+ and 10×10. Chess letters (`kqrbnp`) take the solid glyphs ♚♛♜♝♞♟; any other letter is a fairy
111
+ piece, drawn as its capital letter until the app's look gives it art. Square names run `a`…`l` by
112
+ file and `1`…`10` by rank from White's side.
113
+
114
+ ## Variants clubs reach for
115
+
116
+ - **Small boards:** `gardner` (5×5, every piece), `losalamos` (6×6, no bishops), `minishogi`,
117
+ `micro` and `kinglet`.
118
+ - **Odd goals:** `kingofthehill` (a king on a centre square wins), `3check`, `racingkings`
119
+ (race the kings to rank 8), `antichess` (lose everything to win), `horde` (36 pawns against an
120
+ army), `atomic` (captures explode).
121
+ - **Pieces in hand:** `crazyhouse` (captured pieces come back on your side), `placement`.
122
+ - **Starting positions:** `fischerandom` for Chess960.
123
+
124
+ Name a built-in by its id; build anything else as an ini section on top of one of these.
125
+
126
+ ## Worked example — minichess against the computer
127
+
128
+ Three games behind one board: Gardner and Los Alamos are built in, and Pawn Wars is the club's
129
+ own section. You play White at three strengths.
130
+
131
+ ### `lib/variants.js`
132
+ ```js
133
+ // Chess variants: the rules from ffish (Fairy-Stockfish's rules library) and the opponent from
134
+ // fairy-stockfish-single (the same engine, built to run on one thread). Both are GPL-3 and run
135
+ // unmodified in their own Workers; the page only exchanges messages with them.
136
+ const FFISH = "https://unpkg.com/ffish-es6@0.7.10/";
137
+ const FSF = "https://cdn.jsdelivr.net/gh/VibesDIY/fairy-stockfish-single@v0.1.0/dist/fairy-stockfish";
138
+
139
+ export const LEVELS = [
140
+ { id: "easy", label: "Easy", skill: 0, ms: 150 },
141
+ { id: "club", label: "Club", skill: 8, ms: 400 },
142
+ { id: "strong", label: "Strong", skill: 20, ms: 1200 },
143
+ ];
144
+
145
+ // The rules worker: a module worker that imports ffish, loads the custom variants once, and
146
+ // answers each { variant, moves } with the position after those moves.
147
+ const RULES_WORKER = (ini) => `
148
+ const ready = import(${JSON.stringify(FFISH + "ffish.js")})
149
+ .then((m) => m.default({ locateFile: (f) => ${JSON.stringify(FFISH)} + f }))
150
+ .then((ff) => { if (${JSON.stringify(ini)}) ff.loadVariantConfig(${JSON.stringify(ini)}); return ff; });
151
+ onmessage = async (e) => {
152
+ const { id, variant, moves } = e.data;
153
+ try {
154
+ const ff = await ready;
155
+ const board = new ff.Board(variant); // a second argument must be a FEN string, never undefined
156
+ const san = [];
157
+ for (const uci of moves) { san.push(board.sanMove(uci)); board.push(uci); }
158
+ const out = { id, fen: board.fen(), legal: board.legalMoves().split(" ").filter(Boolean),
159
+ white: board.turn(), check: board.isCheck(), over: board.isGameOver(), result: board.result(), san };
160
+ board.delete(); // ffish boards live in WebAssembly memory until deleted
161
+ postMessage(out);
162
+ } catch (err) { postMessage({ id, error: String(err) }); }
163
+ };`;
164
+
165
+ export function startRules(ini = "") {
166
+ const url = URL.createObjectURL(new Blob([RULES_WORKER(ini)], { type: "text/javascript" }));
167
+ const worker = new Worker(url, { type: "module" });
168
+ let n = 0;
169
+ const pending = new Map();
170
+ worker.onmessage = (e) => {
171
+ const p = pending.get(e.data.id);
172
+ pending.delete(e.data.id);
173
+ if (p) e.data.error ? p.reject(new Error(e.data.error)) : p.resolve(e.data);
174
+ };
175
+ worker.onerror = (e) => {
176
+ for (const p of pending.values()) p.reject(new Error(e.message || "rules unavailable"));
177
+ pending.clear();
178
+ };
179
+ return {
180
+ // The position after `moves` (UCI strings) from the variant's start.
181
+ position: (variant, moves) =>
182
+ new Promise((resolve, reject) => {
183
+ const id = ++n;
184
+ pending.set(id, { resolve, reject });
185
+ worker.postMessage({ id, variant, moves });
186
+ }),
187
+ stop: () => worker.terminate(),
188
+ };
189
+ }
190
+
191
+ export function startEngine(ini = "") {
192
+ const boot = URL.createObjectURL(new Blob([`importScripts("${FSF}.js");`], { type: "application/javascript" }));
193
+ const worker = new Worker(`${boot}#${encodeURIComponent(`${FSF}.wasm`)}`);
194
+ let current = null;
195
+ let queue = Promise.resolve();
196
+ let broken = null;
197
+ worker.onmessage = (e) => {
198
+ const line = String(e.data);
199
+ if (line.startsWith("bestmove") && current) {
200
+ const uci = line.split(" ")[1];
201
+ const done = current;
202
+ current = null;
203
+ done.resolve(uci && uci !== "(none)" ? uci : null);
204
+ }
205
+ };
206
+ worker.onerror = () => {
207
+ broken = new Error("engine unavailable");
208
+ if (current) current.reject(broken);
209
+ current = null;
210
+ };
211
+ worker.postMessage("uci");
212
+ if (ini) worker.postMessage({ variants: ini }); // the same rules text the rules worker loaded
213
+
214
+ return {
215
+ bestMove: (variant, moves, level) => {
216
+ const run = () =>
217
+ new Promise((resolve, reject) => {
218
+ if (broken) return reject(broken);
219
+ current = { resolve, reject };
220
+ worker.postMessage(`setoption name UCI_Variant value ${variant}`);
221
+ worker.postMessage(`setoption name Skill Level value ${level.skill}`);
222
+ worker.postMessage(`position startpos moves ${moves.join(" ")}`);
223
+ worker.postMessage(`go movetime ${level.ms}`); // every search needs a limit on one thread
224
+ });
225
+ const next = queue.then(run, run);
226
+ queue = next.catch(() => {});
227
+ return next;
228
+ },
229
+ stop: () => worker.terminate(),
230
+ };
231
+ }
232
+
233
+ // The FEN's board as rows of cells, top rank first, for any width: "10" is ten empty squares,
234
+ // "+P" a promoted piece, and a crazyhouse "[...]" pocket is not part of the board.
235
+ export function parseBoard(fen) {
236
+ const rows = fen.split(" ")[0].replace(/\[.*\]$/, "").split("/");
237
+ return rows.map((row) => {
238
+ const cells = [];
239
+ for (const m of row.matchAll(/(\d+)|(\+?[A-Za-z]~?)/g)) {
240
+ if (m[1]) for (let i = 0; i < Number(m[1]); i++) cells.push(null);
241
+ else {
242
+ const letter = m[2].replace(/[+~]/g, "");
243
+ cells.push({ type: letter.toLowerCase(), white: letter === letter.toUpperCase() });
244
+ }
245
+ }
246
+ return cells;
247
+ });
248
+ }
249
+
250
+ // "a7a8q" → { from: "a7", to: "a8", promo: "q" }; ranks can be two digits on big boards, and a
251
+ // drop reads "P@e4".
252
+ export function splitMove(uci) {
253
+ const m = uci.match(/^([a-z]\d+|[A-Za-z]@)([a-z]\d+)(.*)$/);
254
+ return m ? { from: m[1], to: m[2], promo: m[3] } : null;
255
+ }
256
+ ```
257
+
258
+ ### `App.jsx`
259
+ ```jsx
260
+ import React, { useEffect, useRef, useState } from "react";
261
+ import { Badge, Button, Card, Heading, Row, Stack, Text } from "@vibes.diy/ui";
262
+ import { LEVELS, parseBoard, splitMove, startEngine, startRules } from "./lib/variants.js";
263
+
264
+ // A club's own rules, written in Fairy-Stockfish's variant format. Both workers load the same text.
265
+ const CLUB_RULES = `
266
+ [pawnwars:chess]
267
+ startFen = 8/pppppppp/8/8/8/8/PPPPPPPP/8 w - - 0 1
268
+ king = -
269
+ castling = false
270
+ extinctionValue = loss
271
+ extinctionPieceTypes = *
272
+ flagPiece = q
273
+ flagRegionWhite = *8
274
+ flagRegionBlack = *1
275
+ promotionPieceTypes = q
276
+ `;
277
+
278
+ const GAMES = [
279
+ { id: "gardner", label: "5×5 Gardner", about: "Every chess piece on a 5×5 board. Mate comes fast." },
280
+ { id: "losalamos", label: "6×6 Los Alamos", about: "The 1956 computer chess board: no bishops, no castling." },
281
+ { id: "pawnwars", label: "Pawn Wars", about: "Only pawns. Reach the far side or take every enemy pawn to win." },
282
+ ];
283
+
284
+ const S = 100;
285
+ const FILES = "abcdefghijkl";
286
+ const GLYPH = { k: "♚", q: "♛", r: "♜", b: "♝", n: "♞", p: "♟" };
287
+ const PIECE_NAME = { q: "Queen", r: "Rook", b: "Bishop", n: "Knight", k: "King" };
288
+
289
+ function outcome(pos) {
290
+ if (!pos?.over) return null;
291
+ if (pos.result === "1-0") return "You win";
292
+ if (pos.result === "0-1") return "The computer wins";
293
+ return "Draw";
294
+ }
295
+
296
+ function VariantBoard({ pos, selected, lastMove, onSquare }) {
297
+ const rows = parseBoard(pos.fen);
298
+ const width = rows[0].length;
299
+ const targets = selected ? pos.legal.map(splitMove).filter((m) => m && m.from === selected).map((m) => m.to) : [];
300
+ return (
301
+ <svg viewBox={`0 0 ${width * S} ${rows.length * S}`} className="w-full max-w-md touch-manipulation select-none" role="group" aria-label="Game board">
302
+ {rows.map((row, r) =>
303
+ row.map((piece, f) => {
304
+ const square = FILES[f] + (rows.length - r);
305
+ const x = f * S;
306
+ const y = r * S;
307
+ return (
308
+ <g key={square} role="button" tabIndex={0} aria-label={piece ? `${square}, ${piece.white ? "white" : "black"} ${PIECE_NAME[piece.type] ?? piece.type}` : square} onClick={() => onSquare(square)} onKeyDown={(e) => (e.key === "Enter" || e.key === " ") && (e.preventDefault(), onSquare(square))} className="cursor-pointer">
309
+ <rect x={x} y={y} width={S} height={S} className={(r + f) % 2 ? "fill-muted" : "fill-card"} />
310
+ {lastMove?.includes(square) && <rect x={x} y={y} width={S} height={S} className="fill-accent opacity-40" />}
311
+ {selected === square && <rect x={x + 4} y={y + 4} width={S - 8} height={S - 8} strokeWidth="8" className="fill-none stroke-primary" />}
312
+ {piece && (
313
+ <text x={x + S / 2} y={y + S / 2 + 4} textAnchor="middle" dominantBaseline="central" fontSize={GLYPH[piece.type] ? 78 : 52} strokeWidth="3" className={piece.white ? "fill-card stroke-foreground" : "fill-foreground stroke-foreground"}>
314
+ {GLYPH[piece.type] ? GLYPH[piece.type] + "︎" : piece.type.toUpperCase()}
315
+ </text>
316
+ )}
317
+ {targets.includes(square) && <circle cx={x + S / 2} cy={y + S / 2} r={piece ? 44 : 14} strokeWidth={piece ? 6 : 0} className={piece ? "fill-none stroke-primary" : "fill-primary opacity-70"} />}
318
+ </g>
319
+ );
320
+ })
321
+ )}
322
+ </svg>
323
+ );
324
+ }
325
+
326
+ export default function App() {
327
+ const [variant, setVariant] = useState(GAMES[0].id);
328
+ const [moves, setMoves] = useState([]); // the game is its UCI move list from the variant's start
329
+ const [pos, setPos] = useState(null);
330
+ const [level, setLevel] = useState(LEVELS[1]);
331
+ const [selected, setSelected] = useState(null);
332
+ const [choices, setChoices] = useState(null); // promotion moves waiting for a pick
333
+ const [thinking, setThinking] = useState(false);
334
+ const [engineDown, setEngineDown] = useState(false);
335
+ const rules = useRef(null);
336
+ const engine = useRef(null);
337
+
338
+ useEffect(() => {
339
+ rules.current = startRules(CLUB_RULES);
340
+ engine.current = startEngine(CLUB_RULES);
341
+ return () => (rules.current.stop(), engine.current.stop());
342
+ }, []);
343
+
344
+ // Every position comes from the rules worker: legal moves, check, the end of the game.
345
+ useEffect(() => {
346
+ let live = true;
347
+ rules.current.position(variant, moves).then((p) => live && setPos(p));
348
+ return () => {
349
+ live = false;
350
+ };
351
+ }, [variant, moves]);
352
+
353
+ const result = outcome(pos);
354
+ const myTurn = pos && pos.white && !pos.over;
355
+
356
+ // The computer plays Black.
357
+ useEffect(() => {
358
+ if (!pos || pos.white || pos.over || pos.legal.length === 0) return;
359
+ let live = true;
360
+ setThinking(true);
361
+ engine.current
362
+ .bestMove(variant, moves, level)
363
+ .then((uci) => live && uci && setMoves([...moves, uci]))
364
+ .catch(() => {
365
+ setEngineDown(true);
366
+ if (live) setMoves([...moves, pos.legal[Math.floor(Math.random() * pos.legal.length)]]);
367
+ })
368
+ .finally(() => live && setThinking(false));
369
+ return () => {
370
+ live = false;
371
+ };
372
+ }, [pos]);
373
+
374
+ function onSquare(square) {
375
+ if (!myTurn || thinking || choices) return; // a promotion picker waits for its pick
376
+ const options = selected ? pos.legal.filter((uci) => { const m = splitMove(uci); return m && m.from === selected && m.to === square; }) : [];
377
+ if (options.length > 1) return setChoices(options); // a promotion: let the player pick the piece
378
+ if (options.length === 1) return (setMoves([...moves, options[0]]), setSelected(null));
379
+ const owns = pos.legal.some((uci) => splitMove(uci)?.from === square);
380
+ setSelected(owns ? square : null);
381
+ }
382
+
383
+ function newGame(id) {
384
+ setVariant(id);
385
+ setMoves([]);
386
+ setPos(null);
387
+ setSelected(null);
388
+ setChoices(null);
389
+ setThinking(false); // a search still running for the old game is ignored when it returns
390
+ }
391
+
392
+ const game = GAMES.find((g) => g.id === variant);
393
+ const last = moves.length ? splitMove(moves[moves.length - 1]) : null;
394
+ const status = result ?? (thinking ? "The computer is thinking…" : pos?.check ? "Check! Your move" : "Your move, you play White");
395
+
396
+ return (
397
+ <main className="min-h-screen bg-background text-foreground font-sans p-4 flex flex-col items-center gap-4">
398
+ <Heading level={1}>Mini chess</Heading>
399
+ <Row gap={2} wrap>
400
+ {GAMES.map((g) => (
401
+ <Button key={g.id} type="button" size="sm" variant={g.id === variant ? "solid" : "quiet"} onClick={() => newGame(g.id)}>
402
+ {g.label}
403
+ </Button>
404
+ ))}
405
+ </Row>
406
+ <Text size="sm" muted>{game.about}</Text>
407
+ <Row gap={2} align="center">
408
+ <Badge tone={result ? "up" : "info"}>{pos ? status : "Setting up the board…"}</Badge>
409
+ {engineDown && <Text size="sm" muted>Engine offline, playing random moves</Text>}
410
+ </Row>
411
+
412
+ {pos && <VariantBoard pos={pos} selected={selected} lastMove={last ? [last.from, last.to] : null} onSquare={onSquare} />}
413
+
414
+ {choices && (
415
+ <Row gap={2} wrap>
416
+ {choices.map((uci) => (
417
+ <Button key={uci} type="button" size="sm" onClick={() => (setMoves([...moves, uci]), setChoices(null), setSelected(null))}>
418
+ {PIECE_NAME[splitMove(uci).promo] ?? splitMove(uci).promo.toUpperCase()}
419
+ </Button>
420
+ ))}
421
+ </Row>
422
+ )}
423
+
424
+ <Row gap={2} wrap>
425
+ {LEVELS.map((l) => (
426
+ <Button key={l.id} type="button" size="sm" variant={l.id === level.id ? "solid" : "quiet"} onClick={() => setLevel(l)}>
427
+ {l.label}
428
+ </Button>
429
+ ))}
430
+ <Button type="button" size="sm" variant="quiet" onClick={() => newGame(variant)}>New game</Button>
431
+ </Row>
432
+
433
+ <div className="w-full max-w-md">
434
+ <Card>
435
+ <Stack gap={2}>
436
+ <Heading level={2}>Moves</Heading>
437
+ <Text size="sm">{pos?.san.map((s, i) => (i % 2 ? s : `${i / 2 + 1}. ${s}`)).join(" ") || "No moves yet."}</Text>
438
+ </Stack>
439
+ </Card>
440
+ </div>
441
+ <Text size="sm" muted>Rules and engine: Fairy-Stockfish (GPL-3).</Text>
442
+ </main>
443
+ );
444
+ }
445
+ ```
package/llms/chess.js CHANGED
@@ -1,8 +1,9 @@
1
1
  export const chessConfig = {
2
2
  name: "chess",
3
3
  label: "Chess",
4
- description: "Load it for every chess app — play the computer at a chosen strength, play a friend from a shared link, puzzles, " +
5
- "opening trainers, blunder coaches, game reviews, club ladders, chess variants. Real rules from chess.js (castling, " +
4
+ description: "Load it for every standard chess app on the 8×8 board — play the computer at a chosen strength, play a friend from " +
5
+ "a shared link, puzzles, opening trainers, blunder coaches, game reviews, club ladders (other boards and rule sets " +
6
+ "are chess-variants'). Real rules from chess.js (castling, " +
6
7
  "en passant, promotion, check, mate, every draw), a Stockfish engine opponent and analysis in a Web Worker, move " +
7
8
  "lists, PGN and FEN, clocks, and the board drawn in SVG, with react-chessboard drag-and-drop, or in 3D.",
8
9
  needs: ["board-games"],
package/llms/chess.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"chess.js","sourceRoot":"","sources":["../../jsr/llms/chess.ts"],"names":[],"mappings":"AAQA,MAAM,CAAC,MAAM,WAAW,GAAc;IACpC,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,OAAO;IACd,WAAW,EACT,mHAAmH;QACnH,qHAAqH;QACrH,kHAAkH;QAClH,wGAAwG;IAE1G,KAAK,EAAE,CAAC,aAAa,CAAC;IACtB,IAAI,EAAE,CAAC,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,WAAW,EAAE,cAAc,EAAE,eAAe,EAAE,KAAK,CAAC;IAC/F,OAAO,EAAE,CAAC,YAAY,EAAE,WAAW,CAAC;CACrC,CAAC"}
1
+ {"version":3,"file":"chess.js","sourceRoot":"","sources":["../../jsr/llms/chess.ts"],"names":[],"mappings":"AAQA,MAAM,CAAC,MAAM,WAAW,GAAc;IACpC,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,OAAO;IACd,WAAW,EACT,qHAAqH;QACrH,oHAAoH;QACpH,4DAA4D;QAC5D,kHAAkH;QAClH,wGAAwG;IAE1G,KAAK,EAAE,CAAC,aAAa,CAAC;IACtB,IAAI,EAAE,CAAC,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,WAAW,EAAE,cAAc,EAAE,eAAe,EAAE,KAAK,CAAC;IAC/F,OAAO,EAAE,CAAC,YAAY,EAAE,WAAW,CAAC;CACrC,CAAC"}
package/llms/chess.md CHANGED
@@ -1,9 +1,9 @@
1
1
  # Chess — the rules from chess.js, the opponent from Stockfish, the board drawn your way
2
2
 
3
3
  Load this for any chess app: play against the computer, play a friend from a shared link, a
4
- puzzle or opening trainer, a blunder coach, a game review, a club ladder, a chess variant on the
5
- standard rules. It stands on the board-games skill, which loads with it and owns the board's
6
- geometry, its look, turns, seats and who sees what. This doc owns the three things chess gets
4
+ puzzle or opening trainer, a blunder coach, a game review, a club ladder. A smaller board, new
5
+ pieces or new rules are the chess-variants skill's instead. It stands on the board-games skill,
6
+ which loads with it and owns the board's geometry, its look, turns, seats and who sees what. This doc owns the three things chess gets
7
7
  wrong when an app writes them itself:
8
8
 
9
9
  1. **The rules come from `chess.js`.** Castling (and losing the right to castle), en passant,
package/llms/index.d.ts CHANGED
@@ -3,6 +3,7 @@ export { backendConfig } from "./backend.js";
3
3
  export { calendarConfig } from "./calendar.js";
4
4
  export { boardGamesConfig } from "./board-games.js";
5
5
  export { chessConfig } from "./chess.js";
6
+ export { chessVariantsConfig } from "./chess-variants.js";
6
7
  export { surfaceBoardConfig } from "./surface-board.js";
7
8
  export { ownerSecretConfig } from "./owner-secret.js";
8
9
  export { thirdPartyEmbedConfig } from "./third-party-embed.js";
@@ -80,7 +81,7 @@ export { uiTestimonialsConfig } from "./ui-testimonials.js";
80
81
  export type { LlmConfig, SkillCredential, SkillEgress } from "./types.js";
81
82
  export { cueMatches, cueMatchedSkills, type CueCatalogEntry } from "./cues.js";
82
83
  export { expandSkills, onSkillMenu, skillGraphProblems, universalSkillNames, type NeedsCatalogEntry } from "./needs.js";
83
- export declare const allConfigs: readonly [LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig];
84
+ export declare const allConfigs: readonly [LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig];
84
85
  export { mapsConfig } from "./maps.js";
85
86
  export declare const SKILL_ALIASES: ReadonlyMap<string, string>;
86
87
  export declare function canonicalSkillName(name: string): string;
package/llms/index.js CHANGED
@@ -3,6 +3,7 @@ import { mapsConfig } from "./maps.js";
3
3
  import { calendarConfig } from "./calendar.js";
4
4
  import { boardGamesConfig } from "./board-games.js";
5
5
  import { chessConfig } from "./chess.js";
6
+ import { chessVariantsConfig } from "./chess-variants.js";
6
7
  import { surfaceBoardConfig } from "./surface-board.js";
7
8
  import { ownerSecretConfig } from "./owner-secret.js";
8
9
  import { thirdPartyEmbedConfig } from "./third-party-embed.js";
@@ -81,6 +82,7 @@ export { backendConfig } from "./backend.js";
81
82
  export { calendarConfig } from "./calendar.js";
82
83
  export { boardGamesConfig } from "./board-games.js";
83
84
  export { chessConfig } from "./chess.js";
85
+ export { chessVariantsConfig } from "./chess-variants.js";
84
86
  export { surfaceBoardConfig } from "./surface-board.js";
85
87
  export { ownerSecretConfig } from "./owner-secret.js";
86
88
  export { thirdPartyEmbedConfig } from "./third-party-embed.js";
@@ -188,6 +190,7 @@ export const allConfigs = [
188
190
  surfaceBoardConfig,
189
191
  boardGamesConfig,
190
192
  chessConfig,
193
+ chessVariantsConfig,
191
194
  accessConfig,
192
195
  connectionsConfig,
193
196
  socialPostConfig,
package/llms/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../jsr/llms/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACvC,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AACzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CA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G,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;QAChH,KAAK,MAAM,CAAC,IAAI,IAAI;YAAE,IAAI,GAAG,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,KAAK;gBAAE,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACnE,CAAC;IACD,OAAO,GAAG,CAAC;AACb,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vibes.diy/prompts",
3
- "version": "14.3.285",
3
+ "version": "14.3.287",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
6
  "exports": {
@@ -39,10 +39,10 @@
39
39
  "license": "Apache-2.0",
40
40
  "dependencies": {
41
41
  "@adviser/cement": "~0.5.34",
42
- "@vibes.diy/api-types": "14.3.285",
43
- "@vibes.diy/call-ai-v2": "14.3.285",
44
- "@vibes.diy/identity": "14.3.285",
45
- "@vibes.diy/use-vibes-types": "14.3.285",
42
+ "@vibes.diy/api-types": "14.3.287",
43
+ "@vibes.diy/call-ai-v2": "14.3.287",
44
+ "@vibes.diy/identity": "14.3.287",
45
+ "@vibes.diy/use-vibes-types": "14.3.287",
46
46
  "arktype": "~2.2.9",
47
47
  "json-schema-faker": "~0.6.3"
48
48
  },