@chessar/engine 0.0.0-stage → 0.1.1

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,107 @@
1
+ #!/usr/bin/env node
2
+ // Copyright 2026 Andrius Jaškauskas
3
+ // SPDX-License-Identifier: Apache-2.0
4
+ import { createWriteStream } from 'node:fs';
5
+ import { resolve } from 'node:path';
6
+ import { pathToFileURL } from 'node:url';
7
+ import { FIXTURES } from './fixtures.js';
8
+ import { bench, isReference } from './bench.js';
9
+ import { REFERENCES } from './references.js';
10
+ import { processBot } from './protocol.js';
11
+ const USAGE = `chessar-bench: run your bot against the reference opponents on a local board.
12
+
13
+ Usage:
14
+ chessar-bench <bot.js> a module whose default export is a bot function (view) => action | null
15
+ chessar-bench --cmd "<command>" a bot in any language that speaks the line protocol (docs/line-protocol.md)
16
+
17
+ Options:
18
+ --vs smart,brawler references to play against, one army each (default: smart,brawler)
19
+ known: ${REFERENCES.join(', ')}
20
+ --games N games to play (default 10); game i uses seed + i
21
+ --seed N first seed (default 1)
22
+ --turns N cycle cap per game (default 300)
23
+ --fixture NAME a fixed starting position with one spot per army: ${FIXTURES.map((f) => f.name).join(', ')}
24
+ --record FILE write every game as JSONL
25
+ --timeout MS per-turn answer time of a --cmd bot (default 5000)
26
+ `;
27
+ function flags(argv) {
28
+ const pos = [];
29
+ const opt = new Map();
30
+ for (let i = 0; i < argv.length; i++) {
31
+ const a = argv[i];
32
+ if (a.startsWith('--')) {
33
+ const v = argv[++i];
34
+ if (v === undefined)
35
+ throw new Error(`${a} needs a value`);
36
+ opt.set(a.slice(2), v);
37
+ }
38
+ else
39
+ pos.push(a);
40
+ }
41
+ return { pos, opt };
42
+ }
43
+ const int = (opt, key, dflt) => {
44
+ const v = opt.get(key);
45
+ if (v === undefined)
46
+ return dflt;
47
+ const n = Number(v);
48
+ if (!Number.isInteger(n) || n < 1)
49
+ throw new Error(`--${key} must be a positive integer`);
50
+ return n;
51
+ };
52
+ async function main() {
53
+ const argv = process.argv.slice(2);
54
+ if (!argv.length || argv.includes('--help') || argv.includes('-h')) {
55
+ console.log(USAGE);
56
+ return argv.length ? 0 : 1;
57
+ }
58
+ const { pos, opt } = flags(argv);
59
+ const vs = (opt.get('vs') ?? 'smart,brawler').split(',').filter(Boolean);
60
+ const bad = vs.find((v) => !isReference(v));
61
+ if (bad)
62
+ throw new Error(`unknown reference "${bad}"; known: ${REFERENCES.join(', ')}`);
63
+ let bot;
64
+ let close = () => { };
65
+ const cmd = opt.get('cmd');
66
+ if (cmd) {
67
+ const [command, ...args] = cmd.split(/\s+/).filter(Boolean);
68
+ if (!command)
69
+ throw new Error('--cmd is empty');
70
+ const p = processBot(command, args, int(opt, 'timeout', 5000));
71
+ bot = p;
72
+ close = () => p.close();
73
+ }
74
+ else if (pos[0]) {
75
+ const mod = await import(pathToFileURL(resolve(pos[0])).href);
76
+ if (typeof mod.default !== 'function')
77
+ throw new Error(`${pos[0]} has no default export function`);
78
+ bot = mod.default;
79
+ }
80
+ else
81
+ throw new Error('give a bot module or --cmd');
82
+ const out = opt.has('record') ? createWriteStream(opt.get('record')) : null;
83
+ try {
84
+ const report = await bench(bot, {
85
+ opponents: vs,
86
+ games: int(opt, 'games', 10),
87
+ seed: int(opt, 'seed', 1),
88
+ maxTurns: int(opt, 'turns', 300),
89
+ fixture: opt.get('fixture'),
90
+ record: out ? (line) => out.write(`${JSON.stringify(line)}\n`) : undefined,
91
+ });
92
+ const { games, wins, survived, lost, captures, mates, rejected } = report;
93
+ console.log(`bot vs ${vs.join(', ')} · ${games} games`);
94
+ console.log(` won ${wins} survived ${survived} lost ${lost}`);
95
+ console.log(` captures ${captures} mates ${mates} refused actions ${rejected}`);
96
+ return 0;
97
+ }
98
+ finally {
99
+ close();
100
+ if (out)
101
+ await new Promise((done) => out.end(done));
102
+ }
103
+ }
104
+ main().then((code) => process.exit(code), (e) => {
105
+ console.error(`chessar-bench: ${e.message}`);
106
+ process.exit(2);
107
+ });
@@ -0,0 +1,14 @@
1
+ import { type WorldConfig } from '../index.js';
2
+ /** A fixed starting position: where each army's formation is centred, in seat order. */
3
+ export type Fixture = {
4
+ name: string;
5
+ description: string;
6
+ spots: {
7
+ x: number;
8
+ y: number;
9
+ }[];
10
+ };
11
+ export declare const FIXTURES: Fixture[];
12
+ export declare function fixtureByName(name: string): Fixture;
13
+ /** The zone radius that holds every formation of a fixture (the world's minimum applies when it is larger). */
14
+ export declare function fixtureRadius(f: Fixture, config: Pick<WorldConfig, 'zoneMinRadius'>): number;
@@ -0,0 +1,27 @@
1
+ // Copyright 2026 Andrius Jaškauskas
2
+ // SPDX-License-Identifier: Apache-2.0
3
+ import { FOOTPRINT_H, FOOTPRINT_W } from '../index.js';
4
+ // Spots sit on the spawn lattice (pitch 7 × 8 with the default spacing), so a fixture is a position the world itself
5
+ // could produce. Every pair of neighbours is within the 16-cell horizon the references look at.
6
+ const at = (i, j) => ({ x: i * 7, y: j * 8 });
7
+ export const FIXTURES = [
8
+ { name: 'duel', description: 'Two armies side by side, 14 cells apart.', spots: [at(-1, 0), at(1, 0)] },
9
+ { name: 'trio', description: 'Three armies in a triangle.', spots: [at(-1, -1), at(1, -1), at(0, 1)] },
10
+ { name: 'quad', description: 'Four armies on the corners of a square.', spots: [at(-1, -1), at(1, -1), at(-1, 1), at(1, 1)] },
11
+ {
12
+ name: 'crowd',
13
+ description: 'Nine armies on a 3 × 3 grid: a crowded world from move one.',
14
+ spots: [-1, 0, 1].flatMap((j) => [-1, 0, 1].map((i) => at(i, j))),
15
+ },
16
+ ];
17
+ export function fixtureByName(name) {
18
+ const f = FIXTURES.find((x) => x.name === name);
19
+ if (!f)
20
+ throw new Error(`unknown fixture "${name}"; known: ${FIXTURES.map((x) => x.name).join(', ')}`);
21
+ return f;
22
+ }
23
+ /** The zone radius that holds every formation of a fixture (the world's minimum applies when it is larger). */
24
+ export function fixtureRadius(f, config) {
25
+ const reach = Math.max(...f.spots.flatMap((p) => [Math.abs(p.x) + FOOTPRINT_W, Math.abs(p.y) + FOOTPRINT_H]));
26
+ return Math.max(config.zoneMinRadius, reach);
27
+ }
@@ -0,0 +1,39 @@
1
+ import { type Cell, type Piece, type PieceType, type WorldState } from '../index.js';
2
+ /** Move helpers shared by the reference opponents and by bots written with the kit. */
3
+ export type MovePick = {
4
+ pieceId: number;
5
+ to: Cell;
6
+ capture: number | null;
7
+ };
8
+ /** What a bot does with its turn. */
9
+ export type Action = ({
10
+ kind: 'move';
11
+ } & MovePick) | {
12
+ kind: 'place';
13
+ type: PieceType;
14
+ to: Cell;
15
+ };
16
+ export declare const VALUE: Record<PieceType, number>;
17
+ /** Only consider enemy Kings within this Chebyshev distance of our King. */
18
+ export declare const KING_HORIZON = 16;
19
+ /** Sentinel "defender" so `attackers` returns every side (for friendly-defence checks). */
20
+ export declare const ANY = "\0";
21
+ export declare const chebyshev: (a: Cell, b: Cell) => number;
22
+ /** Every legal move of an army. */
23
+ export declare function allMoves(s: WorldState, playerId: string): MovePick[];
24
+ /** Make/unmake a move on the state (no clone) while `fn` looks at the result. */
25
+ export declare function withMove<T>(s: WorldState, m: MovePick, fn: () => T): T;
26
+ export declare function deliversMateNear(s: WorldState, playerId: string, m: MovePick, kings: Piece[]): boolean;
27
+ export declare function deliversCheck(s: WorldState, playerId: string, m: MovePick, kings: Piece[]): boolean;
28
+ /** Enemy Kings within KING_HORIZON of our King (scale bound). */
29
+ export declare function nearbyEnemyKings(s: WorldState, me: string, myK: Piece): Piece[];
30
+ export declare function nearestKing(from: Cell, kings: Piece[]): Piece | null;
31
+ /** Expected loss: the worst piece of mine an enemy can win next (undefended, or attacked by a cheaper piece). */
32
+ export declare function exposure(s: WorldState, me: string, mine: Piece[]): number;
33
+ /** Pressure on a King: attacked cells in its 3×3 (centre ×4). */
34
+ export declare function pressure(s: WorldState, by: string, king: Piece): number;
35
+ /**
36
+ * Greedy place: the most valuable type it may place now (a capture-recruit, or a piece of an open mate raid, where
37
+ * the Queen goes first because the pool is first come, first served), on the legal cell nearest an enemy King.
38
+ */
39
+ export declare function pickPlaceGreedy(s: WorldState, playerId: string): Action | null;
@@ -0,0 +1,138 @@
1
+ // Copyright 2026 Andrius Jaškauskas
2
+ // SPDX-License-Identifier: Apache-2.0
3
+ import { PIECE_VALUE, addPiece, attackers, captureIdAt, cellKey, hasLegalMove, isInCheck, kingOf, legalMoves, legalPlacements, piecesOf, removePiece, } from '../index.js';
4
+ export const VALUE = PIECE_VALUE;
5
+ /** Only consider enemy Kings within this Chebyshev distance of our King. */
6
+ export const KING_HORIZON = 16;
7
+ /** Sentinel "defender" so `attackers` returns every side (for friendly-defence checks). */
8
+ export const ANY = '\0';
9
+ export const chebyshev = (a, b) => Math.max(Math.abs(a.x - b.x), Math.abs(a.y - b.y));
10
+ /** Every legal move of an army. */
11
+ export function allMoves(s, playerId) {
12
+ const out = [];
13
+ for (const p of piecesOf(s, playerId)) {
14
+ for (const to of legalMoves(s, p.id)) {
15
+ out.push({ pieceId: p.id, to, capture: captureIdAt(s, p, to) });
16
+ }
17
+ }
18
+ return out;
19
+ }
20
+ /** Make/unmake a move on the state (no clone) while `fn` looks at the result. */
21
+ export function withMove(s, m, fn) {
22
+ const p = s.pieces.get(m.pieceId);
23
+ const ox = p.x;
24
+ const oy = p.y;
25
+ const fromKey = cellKey(ox, oy);
26
+ const toKey = cellKey(m.to.x, m.to.y);
27
+ let captured;
28
+ if (m.capture !== null) {
29
+ captured = s.pieces.get(m.capture);
30
+ if (captured)
31
+ removePiece(s, captured.id);
32
+ }
33
+ s.board.delete(fromKey);
34
+ p.x = m.to.x;
35
+ p.y = m.to.y;
36
+ s.board.set(toKey, p.id);
37
+ try {
38
+ return fn();
39
+ }
40
+ finally {
41
+ s.board.delete(toKey);
42
+ p.x = ox;
43
+ p.y = oy;
44
+ s.board.set(fromKey, p.id);
45
+ if (captured)
46
+ addPiece(s, captured);
47
+ }
48
+ }
49
+ export function deliversMateNear(s, playerId, m, kings) {
50
+ return withMove(s, m, () => {
51
+ for (const k of kings) {
52
+ if (isInCheck(s, k.owner) && !hasLegalMove(s, k.owner))
53
+ return true;
54
+ }
55
+ return false;
56
+ });
57
+ }
58
+ export function deliversCheck(s, playerId, m, kings) {
59
+ return withMove(s, m, () => {
60
+ for (const k of kings) {
61
+ if (isInCheck(s, k.owner))
62
+ return true;
63
+ }
64
+ return false;
65
+ });
66
+ }
67
+ /** Enemy Kings within KING_HORIZON of our King (scale bound). */
68
+ export function nearbyEnemyKings(s, me, myK) {
69
+ const out = [];
70
+ for (const pl of s.players.values()) {
71
+ if (pl.id === me || !pl.alive)
72
+ continue;
73
+ const k = kingOf(s, pl.id);
74
+ if (k && chebyshev(k, myK) <= KING_HORIZON)
75
+ out.push(k);
76
+ }
77
+ return out;
78
+ }
79
+ export function nearestKing(from, kings) {
80
+ let best = null;
81
+ let bestD = Infinity;
82
+ for (const k of kings) {
83
+ const d = chebyshev(from, k);
84
+ if (d < bestD) {
85
+ bestD = d;
86
+ best = k;
87
+ }
88
+ }
89
+ return best;
90
+ }
91
+ /** Expected loss: the worst piece of mine an enemy can win next (undefended, or attacked by a cheaper piece). */
92
+ export function exposure(s, me, mine) {
93
+ let worst = 0;
94
+ for (const p of mine) {
95
+ if (p.type === 'K')
96
+ continue;
97
+ // Skip pieces no longer on the board (should not happen for own list).
98
+ if (s.pieces.get(p.id) !== p)
99
+ continue;
100
+ const atk = attackers(s, p, me);
101
+ if (!atk.length)
102
+ continue;
103
+ const cheapest = Math.min(...atk.map((a) => (a.type === 'K' ? 100 : VALUE[a.type])));
104
+ const defended = attackers(s, p, ANY).some((q) => q.owner === me && q.id !== p.id);
105
+ const loss = defended ? Math.max(0, VALUE[p.type] - cheapest) : VALUE[p.type];
106
+ worst = Math.max(worst, loss);
107
+ }
108
+ return worst;
109
+ }
110
+ /** Pressure on a King: attacked cells in its 3×3 (centre ×4). */
111
+ export function pressure(s, by, king) {
112
+ let n = 0;
113
+ for (let dx = -1; dx <= 1; dx++) {
114
+ for (let dy = -1; dy <= 1; dy++) {
115
+ const c = { x: king.x + dx, y: king.y + dy };
116
+ if (attackers(s, c, king.owner).some((a) => a.owner === by))
117
+ n += dx || dy ? 1 : 4;
118
+ }
119
+ }
120
+ return n;
121
+ }
122
+ /**
123
+ * Greedy place: the most valuable type it may place now (a capture-recruit, or a piece of an open mate raid, where
124
+ * the Queen goes first because the pool is first come, first served), on the legal cell nearest an enemy King.
125
+ */
126
+ export function pickPlaceGreedy(s, playerId) {
127
+ const myK = kingOf(s, playerId);
128
+ const kings = myK ? nearbyEnemyKings(s, playerId, myK) : [];
129
+ const target = myK ? nearestKing(myK, kings) : null;
130
+ let best = null;
131
+ for (const { type, to } of legalPlacements(s, playerId)) {
132
+ const v = VALUE[type];
133
+ const d = target ? chebyshev(to, target) : 0;
134
+ if (!best || v > best.v || (v === best.v && d < best.d))
135
+ best = { type, to, v, d };
136
+ }
137
+ return best ? { kind: 'place', type: best.type, to: best.to } : null;
138
+ }
@@ -0,0 +1,6 @@
1
+ export * from './helpers.js';
2
+ export * from './references.js';
3
+ export * from './fixtures.js';
4
+ export * from './sim.js';
5
+ export * from './bench.js';
6
+ export * from './protocol.js';
@@ -0,0 +1,8 @@
1
+ // Copyright 2026 Andrius Jaškauskas
2
+ // SPDX-License-Identifier: Apache-2.0
3
+ export * from './helpers.js';
4
+ export * from './references.js';
5
+ export * from './fixtures.js';
6
+ export * from './sim.js';
7
+ export * from './bench.js';
8
+ export * from './protocol.js';
@@ -0,0 +1,59 @@
1
+ import { type PieceType, type Snapshot } from '../index.js';
2
+ import type { Action } from './helpers.js';
3
+ import type { Bot, TurnView } from './sim.js';
4
+ /**
5
+ * The line protocol: a bot in any language is a process. Every turn the kit writes ONE line of JSON to its stdin
6
+ * and reads ONE line of JSON from its stdout. Everything else on stdout is ignored; stderr is passed through.
7
+ * The full description is docs/line-protocol.md.
8
+ */
9
+ export declare const PROTOCOL_VERSION = 1;
10
+ /** The line the kit writes: the board and every legal action of the army. */
11
+ export interface TurnMessage {
12
+ protocol: typeof PROTOCOL_VERSION;
13
+ type: 'turn';
14
+ turn: number;
15
+ you: string;
16
+ moves: {
17
+ pieceId: number;
18
+ to: {
19
+ x: number;
20
+ y: number;
21
+ };
22
+ capture: number | null;
23
+ }[];
24
+ places: {
25
+ type: PieceType;
26
+ to: {
27
+ x: number;
28
+ y: number;
29
+ };
30
+ }[];
31
+ snapshot: Snapshot;
32
+ }
33
+ /** The line the bot answers with. Anything else, or no line in time, passes the turn. */
34
+ export type ReplyMessage = {
35
+ move: {
36
+ pieceId: number;
37
+ to: {
38
+ x: number;
39
+ y: number;
40
+ };
41
+ };
42
+ } | {
43
+ place: {
44
+ type: PieceType;
45
+ to: {
46
+ x: number;
47
+ y: number;
48
+ };
49
+ };
50
+ } | {
51
+ pass: true;
52
+ };
53
+ export declare const turnMessage: (v: TurnView) => TurnMessage;
54
+ /** One reply line as an action; null (a pass) for a pass, an empty line, bad JSON or an unknown shape. */
55
+ export declare function parseReply(line: string): Action | null;
56
+ /** A bot that is a child process speaking the line protocol. `close()` ends it. */
57
+ export declare function processBot(command: string, args?: string[], timeoutMs?: number): Bot & {
58
+ close(): void;
59
+ };
@@ -0,0 +1,86 @@
1
+ // Copyright 2026 Andrius Jaškauskas
2
+ // SPDX-License-Identifier: Apache-2.0
3
+ import { spawn } from 'node:child_process';
4
+ import { createInterface } from 'node:readline';
5
+ import { toSnapshot } from '../index.js';
6
+ /**
7
+ * The line protocol: a bot in any language is a process. Every turn the kit writes ONE line of JSON to its stdin
8
+ * and reads ONE line of JSON from its stdout. Everything else on stdout is ignored; stderr is passed through.
9
+ * The full description is docs/line-protocol.md.
10
+ */
11
+ export const PROTOCOL_VERSION = 1;
12
+ export const turnMessage = (v) => ({
13
+ protocol: PROTOCOL_VERSION,
14
+ type: 'turn',
15
+ turn: v.turn,
16
+ you: v.me,
17
+ moves: v.moves,
18
+ places: v.places,
19
+ snapshot: toSnapshot(v.state),
20
+ });
21
+ const isCell = (c) => !!c && typeof c.x === 'number' && typeof c.y === 'number';
22
+ /** One reply line as an action; null (a pass) for a pass, an empty line, bad JSON or an unknown shape. */
23
+ export function parseReply(line) {
24
+ let msg;
25
+ try {
26
+ msg = JSON.parse(line);
27
+ }
28
+ catch {
29
+ return null;
30
+ }
31
+ const m = msg;
32
+ if (m?.move && typeof m.move.pieceId === 'number' && isCell(m.move.to)) {
33
+ return { kind: 'move', pieceId: m.move.pieceId, to: { x: m.move.to.x, y: m.move.to.y }, capture: null };
34
+ }
35
+ if (m?.place && typeof m.place.type === 'string' && isCell(m.place.to)) {
36
+ return { kind: 'place', type: m.place.type, to: { x: m.place.to.x, y: m.place.to.y } };
37
+ }
38
+ return null;
39
+ }
40
+ /** A bot that is a child process speaking the line protocol. `close()` ends it. */
41
+ export function processBot(command, args = [], timeoutMs = 5000) {
42
+ const child = spawn(command, args, { stdio: ['pipe', 'pipe', 'inherit'] });
43
+ const lines = createInterface({ input: child.stdout });
44
+ const queue = [];
45
+ let waiting = null;
46
+ let closed = false;
47
+ lines.on('line', (l) => (waiting ? waiting(l) : queue.push(l)));
48
+ const finish = () => {
49
+ closed = true;
50
+ waiting?.(null);
51
+ };
52
+ child.on('close', finish);
53
+ child.on('error', finish);
54
+ child.stdin.on('error', () => { });
55
+ const next = () => queue.length
56
+ ? Promise.resolve(queue.shift())
57
+ : closed
58
+ ? Promise.resolve(null)
59
+ : new Promise((resolve) => {
60
+ const timer = setTimeout(() => {
61
+ waiting = null;
62
+ resolve(null);
63
+ }, timeoutMs);
64
+ waiting = (l) => {
65
+ clearTimeout(timer);
66
+ waiting = null;
67
+ resolve(l);
68
+ };
69
+ });
70
+ const bot = async (view) => {
71
+ if (closed)
72
+ return null;
73
+ // A late reply to an earlier turn must not answer this one.
74
+ queue.length = 0;
75
+ child.stdin.write(`${JSON.stringify(turnMessage(view))}\n`);
76
+ const line = await next();
77
+ return line === null ? null : parseReply(line);
78
+ };
79
+ bot.close = () => {
80
+ closed = true;
81
+ lines.close();
82
+ child.stdin.end();
83
+ child.kill();
84
+ };
85
+ return bot;
86
+ }
@@ -0,0 +1,40 @@
1
+ import { type WorldState } from '../index.js';
2
+ import { type Action, type MovePick } from './helpers.js';
3
+ /** The reference opponents of the test kit: weaker, readable players to measure a bot against. */
4
+ export declare const REFERENCES: readonly ["smart", "brawler", "turtle", "trickster", "pack"];
5
+ export type ReferenceName = (typeof REFERENCES)[number];
6
+ /** Where a reference gets its candidate moves from: every legal move unless the host narrows it. */
7
+ export type MoveSource = (s: WorldState, playerId: string) => MovePick[];
8
+ declare const EVAL_STYLES: readonly ["smart", "brawler", "turtle", "trickster"];
9
+ type EvalStyle = (typeof EVAL_STYLES)[number];
10
+ export type SmartStyle = {
11
+ gain: number;
12
+ exposure: number;
13
+ pressure: number;
14
+ approach: number;
15
+ cohesion: number;
16
+ enemyPressure: number;
17
+ hangMult: number;
18
+ checkBonus: number;
19
+ /** Pick uniformly among the top N distinct scores (trickster spice). */
20
+ topN: number;
21
+ };
22
+ export declare const STYLES: Record<EvalStyle, SmartStyle>;
23
+ /**
24
+ * Pack / standoff (medium): develop as an army, hold distance until the rear arrives.
25
+ * In check: escape that minimises material loss (no Queen-for-pawn).
26
+ */
27
+ export declare function pickPack(s: WorldState, playerId: string, rng?: () => number, movesOf?: MoveSource): MovePick | null;
28
+ /**
29
+ * Eval strategy: material − exposure + pressure on one target King − pressure on own King + mild approach +
30
+ * cohesion; mate = +∞. Personalities (`brawler` / `turtle` / `trickster`) reuse this search with different weights.
31
+ */
32
+ export declare function pickSmart(s: WorldState, me: string, rng?: () => number, movesOf?: MoveSource): MovePick | null;
33
+ export declare function pickEval(s: WorldState, me: string, rng?: () => number, style?: SmartStyle, movesOf?: MoveSource): MovePick | null;
34
+ /**
35
+ * The action of a reference opponent for its turn, or null when it has none.
36
+ * A mate raid is free material that disappears when someone else is quicker, so the eval styles take from it first,
37
+ * the best-scored piece (the Queen) first; otherwise they weigh placements against moves.
38
+ */
39
+ export declare function referenceAction(name: ReferenceName, s: WorldState, playerId: string, rng?: () => number, movesOf?: MoveSource): Action | null;
40
+ export {};