gigachess 0.6.0 → 0.7.0

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.
Files changed (87) hide show
  1. package/README.md +82 -49
  2. package/dist/attacks.d.ts +7 -4
  3. package/dist/attacks.d.ts.map +1 -1
  4. package/dist/attacks.js +36 -15
  5. package/dist/chess960.d.ts +2 -9
  6. package/dist/chess960.d.ts.map +1 -1
  7. package/dist/chess960.js +2 -18
  8. package/dist/chessjs.d.ts +1 -1
  9. package/dist/chessjs.d.ts.map +1 -1
  10. package/dist/chessjs.js +1 -1
  11. package/dist/chessops/board.d.ts +1 -1
  12. package/dist/chessops/board.d.ts.map +1 -1
  13. package/dist/chessops/board.js +1 -1
  14. package/dist/chessops/chess.d.ts +6 -10
  15. package/dist/chessops/chess.d.ts.map +1 -1
  16. package/dist/chessops/chess.js +73 -97
  17. package/dist/chessops/convert.d.ts +1 -1
  18. package/dist/chessops/convert.d.ts.map +1 -1
  19. package/dist/chessops/convert.js +1 -1
  20. package/dist/chessops/debug.d.ts.map +1 -1
  21. package/dist/chessops/debug.js +7 -0
  22. package/dist/chessops/fen.d.ts.map +1 -1
  23. package/dist/chessops/fen.js +13 -2
  24. package/dist/chessops/fenInternal.d.ts +1 -1
  25. package/dist/chessops/fenInternal.d.ts.map +1 -1
  26. package/dist/chessops/fenInternal.js +1 -1
  27. package/dist/chessops/nativeBridge.d.ts +14 -0
  28. package/dist/chessops/nativeBridge.d.ts.map +1 -0
  29. package/dist/chessops/nativeBridge.js +87 -0
  30. package/dist/chessops/san.d.ts.map +1 -1
  31. package/dist/chessops/san.js +12 -10
  32. package/dist/chesstree.d.ts.map +1 -1
  33. package/dist/chesstree.js +23 -62
  34. package/dist/core.d.ts +6 -8
  35. package/dist/core.d.ts.map +1 -1
  36. package/dist/core.js +5 -10
  37. package/dist/fast/index.js +1 -1
  38. package/dist/fast.d.ts +1 -11
  39. package/dist/fast.d.ts.map +1 -1
  40. package/dist/fast.js +2 -11
  41. package/dist/index.d.ts +1 -14
  42. package/dist/index.d.ts.map +1 -1
  43. package/dist/index.js +2 -19
  44. package/dist/native96.d.ts +16 -0
  45. package/dist/native96.d.ts.map +1 -0
  46. package/dist/native96.js +6 -0
  47. package/dist/nativeBoard96.d.ts +118 -0
  48. package/dist/nativeBoard96.d.ts.map +1 -0
  49. package/dist/nativeBoard96.js +1077 -0
  50. package/dist/nativeChess.d.ts +97 -0
  51. package/dist/nativeChess.d.ts.map +1 -0
  52. package/dist/nativeChess.js +201 -0
  53. package/dist/nativeMovegen96.d.ts +2 -0
  54. package/dist/nativeMovegen96.d.ts.map +1 -0
  55. package/dist/{standardMovegen.js → nativeMovegen96.js} +77 -48
  56. package/dist/nativePublicTypes.d.ts +3 -0
  57. package/dist/nativePublicTypes.d.ts.map +1 -0
  58. package/dist/nativePublicTypes.js +1 -0
  59. package/dist/perftCompact.d.ts +7 -0
  60. package/dist/perftCompact.d.ts.map +1 -1
  61. package/dist/perftCompact.js +124 -62
  62. package/dist/pgn.d.ts +2 -3
  63. package/dist/pgn.d.ts.map +1 -1
  64. package/dist/pgn.js +2 -5
  65. package/dist/setupBoard.d.ts +54 -0
  66. package/dist/setupBoard.d.ts.map +1 -0
  67. package/dist/setupBoard.js +249 -0
  68. package/dist/{fen.d.ts → setupFen.d.ts} +1 -1
  69. package/dist/setupFen.d.ts.map +1 -0
  70. package/dist/{fen.js → setupFen.js} +1 -1
  71. package/dist/types.d.ts +1 -1
  72. package/dist/types.d.ts.map +1 -1
  73. package/dist/zobrist.d.ts +2 -2
  74. package/dist/zobrist.d.ts.map +1 -1
  75. package/package.json +10 -7
  76. package/dist/board.d.ts +0 -242
  77. package/dist/board.d.ts.map +0 -1
  78. package/dist/board.js +0 -1403
  79. package/dist/chess.d.ts +0 -259
  80. package/dist/chess.d.ts.map +0 -1
  81. package/dist/chess.js +0 -2314
  82. package/dist/fen.d.ts.map +0 -1
  83. package/dist/san.d.ts +0 -38
  84. package/dist/san.d.ts.map +0 -1
  85. package/dist/san.js +0 -523
  86. package/dist/standardMovegen.d.ts +0 -3
  87. package/dist/standardMovegen.d.ts.map +0 -1
package/dist/chess.d.ts DELETED
@@ -1,259 +0,0 @@
1
- import type { SquareSet } from "./squareSet.js";
2
- import { Board, type Undo as BoardUndo, type NullUndo } from "./board.js";
3
- import { Color, Role } from "./types.js";
4
- import type { Setup, Move, Position } from "./types.js";
5
- import type { ZobristKey } from "./zobrist.js";
6
- import type { TreeWrapper } from "./chesstree.js";
7
- export declare function isCheck(pos: Position): boolean;
8
- export declare function kingAttackers(pos: Position, color: Color): SquareSet;
9
- /**
10
- * In-check test computed FRESH from the attack tables — never from the cached
11
- * `checkers` bitboard.
12
- *
13
- * The null-move legality gate must use this: a caller that reached a pass
14
- * through a cache-free make holds a `checkers` value describing some earlier
15
- * position, and reading it would accept or refuse the wrong positions. The scan
16
- * costs one `attackersTo` on a path taken roughly once per ten thousand plies.
17
- * Mirrors gigachess-rs `make_null_move` (board.rs).
18
- */
19
- export declare function isCheckFresh(pos: Position): boolean;
20
- /**
21
- * A pass is legal iff the side to move is NOT in check (a null move answers no
22
- * check). Always judged from the attack tables — see {@link isCheckFresh}.
23
- */
24
- export declare function isNullMoveLegal(pos: Position): boolean;
25
- export declare function isInsufficientMaterial(pos: Position): boolean;
26
- export declare function isFiftyMoveDraw(pos: Position): boolean;
27
- export declare function isSeventyFiveMoveDraw(pos: Position): boolean;
28
- export declare function isThreefoldRepetition(history: Position[]): boolean;
29
- export declare function isFivefoldRepetition(history: Position[]): boolean;
30
- /**
31
- * FIDE repetition key, matching gigachess-rs `Board::repetition_key()`.
32
- * Polyglot Zobrist hashing deliberately remains pseudo-legal EP-based;
33
- * this key excludes the EP contribution when there is no LEGAL EP capture.
34
- * Requires `ensureZobristLoaded()` to have completed, like other key APIs.
35
- */
36
- export declare function repetitionKey(pos: Position): ZobristKey;
37
- import { detectCastling, castlingPlanFor, planForDest } from "./castling.js";
38
- import type { CastlingPlan } from "./castling.js";
39
- export { detectCastling, castlingPlanFor, planForDest, };
40
- export type { CastlingPlan };
41
- /**
42
- * Plays a null move (pass): the position stays, the side to move flips.
43
- *
44
- * Semantics mirror an ordinary move's state transition: castling rights are
45
- * untouched, the en-passant square clears (any pending double push lapses), the
46
- * halfmove clock advances and the move always completes a full move (a pass is
47
- * a move, not a half-move: after the pass White is to move with the number
48
- * advanced, whoever passed). The incremental Polyglot hash and the cached
49
- * `checkers` are maintained, so `zobrist()` still equals a full recompute and
50
- * `isCheck` stays branch-free.
51
- *
52
- * Throws when the side to move is in check: a pass answers no check. The test
53
- * is computed from the bitboards rather than read from the cache — see
54
- * {@link isCheckFresh}.
55
- *
56
- * Mirrors gigachess-rs `Board::make_null_move` (board.rs).
57
- */
58
- export declare function makeNullMove(pos: Position): Position;
59
- export declare function makeMove(pos: Position, move: Move): Position;
60
- export declare const play: typeof makeMove;
61
- type CheckContext = {
62
- us: Color;
63
- ksq: number;
64
- doubleCheck: boolean;
65
- /** squares that resolve a single check (block or capture); FULL when not in check */
66
- checkMask: SquareSet;
67
- /** squares the king may move to (not attacked with our king removed from occupancy) */
68
- kingSafe: SquareSet;
69
- /** pinned own pieces bitmask */
70
- pinned: SquareSet;
71
- /**
72
- * Castling plans for the side to move (empty when no rights / kingless),
73
- * computed once per position so the hot loops never re-run detectCastling
74
- * per king move. Legality is still filtered exactly in destsFast.
75
- */
76
- castlingPlans: CastlingPlan[];
77
- };
78
- export type { CheckContext };
79
- export declare function analyzeCheckContext(pos: Position, reuse?: CheckContext, perftOnly?: boolean): CheckContext;
80
- /**
81
- * dests for one piece, given the per-position CheckContext. Legality is a
82
- * pure set intersection for all cases except the trap cases listed above.
83
- */
84
- export declare function destsFast(pos: Position, from: number, piece: {
85
- color: Color;
86
- role: Role;
87
- }, ctx: CheckContext): SquareSet;
88
- export declare function dests(pos: Position, from: number): SquareSet;
89
- export declare function allDests(pos: Position): Map<number, SquareSet>;
90
- export declare function isLegal(pos: Position, move: Move): boolean;
91
- export declare function isCheckmate(pos: Position): boolean;
92
- export declare function isStalemate(pos: Position): boolean;
93
- export declare function perft(pos: Position, depth: number): number;
94
- export declare class MoveCounter {
95
- count: number;
96
- add(set: SquareSet): void;
97
- addPawns(legal: SquareSet, isWhite: boolean): void;
98
- reset(): void;
99
- }
100
- export declare function countLegalMoves(pos: Position, existingContext?: CheckContext): number;
101
- export declare function legalMovesInto(pos: Position, out: Uint16Array | Uint32Array, existingContext?: CheckContext): number;
102
- export declare function forEachLegalMove(pos: Position, fn: (from: number, to: number, promo: number) => void): void;
103
- export declare const INITIAL_FEN = "rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1";
104
- /** Baseline-style color name. */
105
- export type ColorName = "w" | "b";
106
- /** Baseline-style piece type char. */
107
- export type PieceChar = "p" | "n" | "b" | "r" | "q" | "k";
108
- /** Verbose move object (chessjs-consumer `Move` shape). */
109
- export type VerboseMove = {
110
- color: ColorName;
111
- from: string;
112
- to: string;
113
- /** Absent on a null move (pass) — a pass moves no piece. */
114
- piece?: PieceChar;
115
- captured?: PieceChar;
116
- promotion?: PieceChar;
117
- flags: string;
118
- san: string;
119
- lan: string;
120
- before: string;
121
- after: string;
122
- };
123
- export type HistoryEntry = {
124
- readonly before: Position;
125
- readonly after: Position;
126
- readonly move: Move;
127
- readonly san: string;
128
- readonly boardUndo?: BoardUndo | NullUndo;
129
- readonly prev_checkers?: SquareSet;
130
- readonly prev_zobrist?: ZobristKey;
131
- };
132
- export type { BoardUndo as Undo, NullUndo };
133
- export { Board };
134
- /**
135
- * Unified root `Chess` (design D1): the chess.js-ergonomic mutable façade
136
- * over the immutable engine core, extended with the high-performance
137
- * bitboard surface, zero-alloc Zobrist hashing and 16-bit packed moves2, and
138
- * native tree navigation. Lives at the ROOT entrypoint so the tree-shakeable
139
- * `gigachess/core` graph stays free of FEN/PGN/tree facade code.
140
- */
141
- export declare class Chess {
142
- #private;
143
- constructor(fen?: string | Position);
144
- /** Replaces the current position (throws on an invalid FEN). */
145
- load(fen: string): void;
146
- /** Resets to the initial position and clears history. */
147
- reset(): void;
148
- /** Current FEN (byte-identical to the engine's makeFen modulo ep filtering). */
149
- fen(): string;
150
- /** Side to move: "w" | "b". */
151
- turn(): ColorName;
152
- /** Current fullmove number (starts at 1). */
153
- moveNumber(): number;
154
- /**
155
- * Plays a move given as SAN (tolerant: `+`/`#` suffixes, `x` on quiet moves,
156
- * `0-0`/`O-O`), as UCI (`e2e4`, `e7e8q`), or as a {from,to,promotion?}
157
- * object. Returns the verbose move, or null when the move is illegal.
158
- */
159
- move(input: string | {
160
- from: string;
161
- to: string;
162
- promotion?: string;
163
- }): VerboseMove | null;
164
- /**
165
- * Legal moves. Default: SAN strings. `{ verbose: true }`: VerboseMove[]
166
- * (shape-compatible with the chessjs consumer baseline). `{ square }`
167
- * filters by origin square ("e2").
168
- */
169
- moves(options: {
170
- square?: string;
171
- verbose: true;
172
- }): VerboseMove[];
173
- moves(options?: {
174
- square?: string;
175
- verbose?: false;
176
- }): string[];
177
- /** SAN history by default; `{ verbose: true }` for full move objects. */
178
- history(options: {
179
- verbose: true;
180
- }): VerboseMove[];
181
- history(options?: {
182
- verbose?: false;
183
- }): string[];
184
- /** Reverts the last move; returns it in verbose shape, or null if none. */
185
- undo(): VerboseMove | null;
186
- isCheck(): boolean;
187
- inCheck(): boolean;
188
- isCheckmate(): boolean;
189
- isStalemate(): boolean;
190
- /** Draw by insufficient material, the fifty-move rule, or threefold repetition. */
191
- isDraw(): boolean;
192
- /** Draw by the fifty-move rule. */
193
- isDrawByFiftyMoves(): boolean;
194
- /** Draw by insufficient material. */
195
- isInsufficientMaterial(): boolean;
196
- /** Draw by threefold repetition over the game's position history. */
197
- isThreefoldRepetition(): boolean;
198
- /** Game over: checkmate, stalemate, or draw. */
199
- isGameOver(): boolean;
200
- /** Piece on a square ("e2"), or undefined. */
201
- get(square: string): {
202
- type: PieceChar;
203
- color: ColorName;
204
- } | undefined;
205
- /** 8x8 board, rank 8 first; null on empty squares. */
206
- board(): ({
207
- square: string;
208
- type: PieceChar;
209
- color: ColorName;
210
- } | null)[][];
211
- /** "light" | "dark" square color (a1 is dark, h1 is light). */
212
- squareColor(square: string): "light" | "dark" | undefined;
213
- /** PGN: Seven Tag Roster defaults, FEN/SetUp for non-default starts, numbered movetext. */
214
- pgn(): string;
215
- /** Legal destinations for one square ("e2" or index). */
216
- dests(square: string | number): SquareSet;
217
- /** Legal destinations for every piece of the side to move. */
218
- allDests(): Map<number, SquareSet>;
219
- /** True when `move` is legal in the current position. */
220
- isLegal(move: Move): boolean;
221
- /** Genuine recursive perft node count (no shortcuts). */
222
- perft(depth: number): number;
223
- /** Applies an engine move in place (immutable core stays pure underneath). */
224
- play(move: Move): this;
225
- /** Current 64-bit Zobrist key (zero-BigInt {lo, hi} halves). */
226
- zobrist(): ZobristKey;
227
- /** Current Zobrist key as 16 zero-padded hex digits (hi first). */
228
- zobristHex(): string;
229
- /** Packs the game's move history into a 16-bit moves2 stream. */
230
- toMoves2(): Uint16Array;
231
- /** Replays a moves2 stream (Uint16Array or little-endian Uint8Array) in place. */
232
- loadMoves2(buffer: Uint16Array | Uint8Array, startFen?: string): void;
233
- /** Builds a Chess game from a moves2 stream (startpos, or a custom start FEN). */
234
- static fromMoves2(buffer: Uint16Array | Uint8Array, startFen?: string): Chess;
235
- /** Wraps an arbitrary engine Setup. */
236
- static fromSetup(setup: Setup): Chess;
237
- /** Fresh game from the standard initial position. */
238
- static default(): Chess;
239
- /** FEN the game started from (for tree roots / PGN headers). */
240
- get startFen(): string;
241
- /** Live engine position (read-only view over the internal state). */
242
- get pos(): Position;
243
- get _pos(): Position;
244
- get boardInstance(): Board;
245
- /** Internal history log (read-only view; used by toTree). */
246
- get historyEntries(): readonly HistoryEntry[];
247
- /**
248
- * Exports the live game as a chesstree wrapper: recursive variation
249
- * navigation (`nodeAtPath`, `getNodeList`, `addNode`, `setCommentAt`, …)
250
- * and full recursive PGN rendering via `tree.pgn()`.
251
- */
252
- toTree(): TreeWrapper;
253
- /**
254
- * Imports a PGN (headers + recursive variations), loads the mainline into
255
- * this game, and returns the analysis tree wrapper.
256
- */
257
- loadTree(pgn: string): TreeWrapper;
258
- }
259
- //# sourceMappingURL=chess.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"chess.d.ts","sourceRoot":"","sources":["../src/chess.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAEhD,OAAO,EAAE,KAAK,EAAE,KAAK,IAAI,IAAI,SAAS,EAAE,KAAK,QAAQ,EAAE,MAAM,YAAY,CAAC;AAE1E,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AACzC,OAAO,KAAK,EAAE,KAAK,EAAE,IAAI,EAA0B,QAAQ,EAAE,MAAM,YAAY,CAAC;AAGhF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAe/C,OAAO,KAAK,EAAY,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAuB5D,wBAAgB,OAAO,CAAC,GAAG,EAAE,QAAQ,GAAG,OAAO,CAQ9C;AAED,wBAAgB,aAAa,CAAC,GAAG,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,GAAG,SAAS,CAEpE;AAED;;;;;;;;;GASG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,QAAQ,GAAG,OAAO,CAKnD;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,GAAG,EAAE,QAAQ,GAAG,OAAO,CAEtD;AAGD,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,QAAQ,GAAG,OAAO,CA4C7D;AAED,wBAAgB,eAAe,CAAC,GAAG,EAAE,QAAQ,GAAG,OAAO,CAEtD;AACD,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,QAAQ,GAAG,OAAO,CAE5D;AAED,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,QAAQ,EAAE,GAAG,OAAO,CASlE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