gigachess 0.3.0 → 0.4.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.
- package/README.md +102 -125
- package/dist/attacks.d.ts +3 -3
- package/dist/attacks.d.ts.map +1 -1
- package/dist/attacks.js +1 -1
- package/dist/board.d.ts +99 -44
- package/dist/board.d.ts.map +1 -1
- package/dist/board.js +726 -15
- package/dist/castling.d.ts +11 -1
- package/dist/castling.d.ts.map +1 -1
- package/dist/castling.js +122 -0
- package/dist/chess.d.ts +11 -23
- package/dist/chess.d.ts.map +1 -1
- package/dist/chess.js +81 -178
- package/dist/chess960.d.ts +1 -1
- package/dist/chess960.d.ts.map +1 -1
- package/dist/chess960.js +2 -2
- package/dist/chessjs.d.ts +13 -0
- package/dist/chessjs.d.ts.map +1 -0
- package/dist/chessjs.js +23 -0
- package/dist/chessops/board.d.ts +1 -1
- package/dist/chessops/board.d.ts.map +1 -1
- package/dist/chessops/chess.js +1 -1
- package/dist/chessops/convert.d.ts +1 -1
- package/dist/chessops/convert.d.ts.map +1 -1
- package/dist/chessops/fenInternal.d.ts +1 -1
- package/dist/chessops/fenInternal.d.ts.map +1 -1
- package/dist/chessops/fenInternal.js +2 -2
- package/dist/chessops/index.js +2 -2
- package/dist/chessops/setup.js +1 -1
- package/dist/chessops/types.js +1 -1
- package/dist/chesstree.d.ts +1 -1
- package/dist/chesstree.d.ts.map +1 -1
- package/dist/chesstree.js +5 -5
- package/dist/core.d.ts +1 -1
- package/dist/core.d.ts.map +1 -1
- package/dist/core.js +2 -2
- package/dist/fen.js +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -6
- package/dist/packedMove.js +1 -1
- package/dist/squareSet.js +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/types.d.ts.map +1 -1
- package/dist/zobrist.d.ts +22 -0
- package/dist/zobrist.d.ts.map +1 -1
- package/dist/zobrist.js +89 -33
- package/dist/zobristBlob.js +1 -1
- package/package.json +5 -5
package/dist/castling.d.ts
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
import type { CastlingRights, Position } from "./types.js";
|
|
2
|
-
import
|
|
2
|
+
import { Color } from "./types.js";
|
|
3
|
+
export type CastlingPlan = {
|
|
4
|
+
side: "king" | "queen";
|
|
5
|
+
kingFrom: number;
|
|
6
|
+
kingTo: number;
|
|
7
|
+
rookFrom: number;
|
|
8
|
+
rookTo: number;
|
|
9
|
+
};
|
|
3
10
|
export declare const CASTLE_WK = 1;
|
|
4
11
|
export declare const CASTLE_WQ = 2;
|
|
5
12
|
export declare const CASTLE_BK = 4;
|
|
@@ -28,4 +35,7 @@ export declare const CASTLE_PATH_LO: Uint32Array<ArrayBuffer>;
|
|
|
28
35
|
export declare const CASTLE_PATH_HI: Uint32Array<ArrayBuffer>;
|
|
29
36
|
export declare const CASTLE_TRAVERSAL_WHITE: (readonly number[])[];
|
|
30
37
|
export declare const CASTLE_TRAVERSAL_BLACK: (readonly number[])[];
|
|
38
|
+
export declare function castlingPlanFor(color: Color, ks: number, rs: number): CastlingPlan;
|
|
39
|
+
export declare function planForDest(plans: CastlingPlan[], to: number): CastlingPlan | null;
|
|
40
|
+
export declare function detectCastling(pos: Position, from: number, to: number): CastlingPlan | null;
|
|
31
41
|
//# sourceMappingURL=castling.d.ts.map
|
package/dist/castling.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"castling.d.ts","sourceRoot":"","sources":["../src/castling.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAC3D,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"castling.d.ts","sourceRoot":"","sources":["../src/castling.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAC3D,OAAO,EAAE,KAAK,EAAQ,MAAM,YAAY,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AE,EAAE,MAAM,GAAG,YAAY,GAAG,IAAI,CAMlF;AAeD,wBAAgB,cAAc,CAAC,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,YAAY,GAAG,IAAI,CA+D3F"}
|
package/dist/castling.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { Color, Role } from "./types.js";
|
|
2
|
+
import { squareRank, squareFile } from "./util.js";
|
|
1
3
|
export const CASTLE_WK = 1; // 0b0001
|
|
2
4
|
export const CASTLE_WQ = 2; // 0b0010
|
|
3
5
|
export const CASTLE_BK = 4; // 0b0100
|
|
@@ -143,3 +145,123 @@ for (let kFile = 0; kFile < 8; kFile++) {
|
|
|
143
145
|
CASTLE_TRAVERSAL_BLACK[idx] = travB;
|
|
144
146
|
}
|
|
145
147
|
}
|
|
148
|
+
export function castlingPlanFor(color, ks, rs) {
|
|
149
|
+
const rank = squareRank(ks);
|
|
150
|
+
const isKingSide = squareFile(rs) > squareFile(ks);
|
|
151
|
+
return {
|
|
152
|
+
side: isKingSide ? "king" : "queen",
|
|
153
|
+
kingFrom: ks,
|
|
154
|
+
kingTo: isKingSide ? (rank << 3) | 6 : (rank << 3) | 2,
|
|
155
|
+
rookFrom: rs,
|
|
156
|
+
rookTo: isKingSide ? (rank << 3) | 5 : (rank << 3) | 3,
|
|
157
|
+
};
|
|
158
|
+
}
|
|
159
|
+
export function planForDest(plans, to) {
|
|
160
|
+
for (let i = 0; i < plans.length; i++) {
|
|
161
|
+
const p = plans[i];
|
|
162
|
+
if (p.rookFrom === to || p.kingTo === to)
|
|
163
|
+
return p;
|
|
164
|
+
}
|
|
165
|
+
return null;
|
|
166
|
+
}
|
|
167
|
+
function pieceRoleAndColorAt(b, sqIdx) {
|
|
168
|
+
const bit = sqIdx < 32 ? (1 << sqIdx) >>> 0 : (1 << (sqIdx - 32)) >>> 0;
|
|
169
|
+
const occ = sqIdx < 32 ? b.occupied.lo : b.occupied.hi;
|
|
170
|
+
if (((occ & bit) >>> 0) === 0)
|
|
171
|
+
return undefined;
|
|
172
|
+
const whiteW = sqIdx < 32 ? b.white.lo : b.white.hi;
|
|
173
|
+
const color = ((whiteW & bit) >>> 0) !== 0 ? Color.White : Color.Black;
|
|
174
|
+
const rookW = sqIdx < 32 ? b.rook.lo : b.rook.hi;
|
|
175
|
+
if (((rookW & bit) >>> 0) !== 0)
|
|
176
|
+
return { color, role: Role.Rook };
|
|
177
|
+
const kingW = sqIdx < 32 ? b.king.lo : b.king.hi;
|
|
178
|
+
if (((kingW & bit) >>> 0) !== 0)
|
|
179
|
+
return { color, role: Role.King };
|
|
180
|
+
return { color, role: Role.Pawn };
|
|
181
|
+
}
|
|
182
|
+
export function detectCastling(pos, from, to) {
|
|
183
|
+
if (!pos.isChess960) {
|
|
184
|
+
const mask = pos.castlingMask ?? getCastlingMask(pos);
|
|
185
|
+
if (mask === 0)
|
|
186
|
+
return null;
|
|
187
|
+
if (pos.turn === Color.White) {
|
|
188
|
+
if ((mask & (CASTLE_WK | CASTLE_WQ)) === 0 || from !== 4)
|
|
189
|
+
return null;
|
|
190
|
+
if (to === 7 || to === 6) {
|
|
191
|
+
if ((mask & CASTLE_WK) === 0)
|
|
192
|
+
return null;
|
|
193
|
+
if (to === 6 && pieceRoleAndColorAt(pos.board, 6))
|
|
194
|
+
return null;
|
|
195
|
+
const rp = pieceRoleAndColorAt(pos.board, 7);
|
|
196
|
+
if (rp && rp.color === Color.White && rp.role === Role.Rook)
|
|
197
|
+
return PLAN_WHITE_K;
|
|
198
|
+
}
|
|
199
|
+
else if (to === 0 || to === 2) {
|
|
200
|
+
if ((mask & CASTLE_WQ) === 0)
|
|
201
|
+
return null;
|
|
202
|
+
if (to === 2 && pieceRoleAndColorAt(pos.board, 2))
|
|
203
|
+
return null;
|
|
204
|
+
const rp = pieceRoleAndColorAt(pos.board, 0);
|
|
205
|
+
if (rp && rp.color === Color.White && rp.role === Role.Rook)
|
|
206
|
+
return PLAN_WHITE_Q;
|
|
207
|
+
}
|
|
208
|
+
return null;
|
|
209
|
+
}
|
|
210
|
+
else {
|
|
211
|
+
if ((mask & (CASTLE_BK | CASTLE_BQ)) === 0 || from !== 60)
|
|
212
|
+
return null;
|
|
213
|
+
if (to === 63 || to === 62) {
|
|
214
|
+
if ((mask & CASTLE_BK) === 0)
|
|
215
|
+
return null;
|
|
216
|
+
if (to === 62 && pieceRoleAndColorAt(pos.board, 62))
|
|
217
|
+
return null;
|
|
218
|
+
const rp = pieceRoleAndColorAt(pos.board, 63);
|
|
219
|
+
if (rp && rp.color === Color.Black && rp.role === Role.Rook)
|
|
220
|
+
return PLAN_BLACK_K;
|
|
221
|
+
}
|
|
222
|
+
else if (to === 56 || to === 58) {
|
|
223
|
+
if ((mask & CASTLE_BQ) === 0)
|
|
224
|
+
return null;
|
|
225
|
+
if (to === 58 && pieceRoleAndColorAt(pos.board, 58))
|
|
226
|
+
return null;
|
|
227
|
+
const rp = pieceRoleAndColorAt(pos.board, 56);
|
|
228
|
+
if (rp && rp.color === Color.Black && rp.role === Role.Rook)
|
|
229
|
+
return PLAN_BLACK_Q;
|
|
230
|
+
}
|
|
231
|
+
return null;
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
// Chess960 fallback
|
|
235
|
+
if (pos.castling.white.size === 0 && pos.castling.black.size === 0)
|
|
236
|
+
return null;
|
|
237
|
+
const piece = pieceRoleAndColorAt(pos.board, from);
|
|
238
|
+
if (!piece || piece.role !== Role.King || piece.color !== pos.turn)
|
|
239
|
+
return null;
|
|
240
|
+
const rights = piece.color === Color.White ? pos.castling.white : pos.castling.black;
|
|
241
|
+
if (rights.size === 0)
|
|
242
|
+
return null;
|
|
243
|
+
const rank = squareRank(from);
|
|
244
|
+
// Input form 1: king captures own rook on its origin square (baseline/960).
|
|
245
|
+
if (rights.has(to) && squareRank(to) === rank) {
|
|
246
|
+
const target = pieceRoleAndColorAt(pos.board, to);
|
|
247
|
+
if (target && target.color === piece.color && target.role === Role.Rook) {
|
|
248
|
+
return castlingPlanFor(piece.color, from, to);
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
// Input form 2: normalized landing square — a two-file step on the same rank.
|
|
252
|
+
if (squareRank(to) === rank && Math.abs(squareFile(to) - squareFile(from)) === 2) {
|
|
253
|
+
// The landing square must be empty for castling.
|
|
254
|
+
if (!pieceRoleAndColorAt(pos.board, to)) {
|
|
255
|
+
for (const rs of rights) {
|
|
256
|
+
const plan = castlingPlanFor(piece.color, from, rs);
|
|
257
|
+
if (plan.kingTo !== to)
|
|
258
|
+
continue;
|
|
259
|
+
// The right's rook must actually be present on its origin square.
|
|
260
|
+
const rp = pieceRoleAndColorAt(pos.board, rs);
|
|
261
|
+
if (rp && rp.color === piece.color && rp.role === Role.Rook)
|
|
262
|
+
return plan;
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
return null;
|
|
267
|
+
}
|
package/dist/chess.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { SquareSet } from "./squareSet.js";
|
|
2
|
+
import { Board, type Undo as BoardUndo } from "./board.js";
|
|
2
3
|
import { Color, Role } from "./types.js";
|
|
3
4
|
import type { Setup, Move, Position } from "./types.js";
|
|
4
5
|
import type { ZobristKey } from "./zobrist.js";
|
|
@@ -10,26 +11,10 @@ export declare function isFiftyMoveDraw(pos: Position): boolean;
|
|
|
10
11
|
export declare function isSeventyFiveMoveDraw(pos: Position): boolean;
|
|
11
12
|
export declare function isThreefoldRepetition(history: Position[]): boolean;
|
|
12
13
|
export declare function isFivefoldRepetition(history: Position[]): boolean;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
rookFrom: number;
|
|
18
|
-
rookTo: number;
|
|
19
|
-
};
|
|
20
|
-
/**
|
|
21
|
-
* Single source of truth for castling detection, shared by makeMove, isLegal,
|
|
22
|
-
* makeSan, destsFast and genLegalMoves (design D2). Accepts both input
|
|
23
|
-
* representations:
|
|
24
|
-
* - king→own-rook square (baseline / 960 input, e1h1), and
|
|
25
|
-
* - king→normalized landing square (e1g1; a two-file king step),
|
|
26
|
-
* provided the corresponding castling right exists and the rook is actually
|
|
27
|
-
* on its origin square. Returns null for every non-castling move — in
|
|
28
|
-
* particular for an ordinary one-square king step to g1/c1/g8/c8, which the
|
|
29
|
-
* previous per-call-site heuristics misclassified when ANY color (even the
|
|
30
|
-
* opponent) held castling rights (root cause of the perft parity defect).
|
|
31
|
-
*/
|
|
32
|
-
export declare function detectCastling(pos: Position, from: number, to: number): CastlingPlan | null;
|
|
14
|
+
import { detectCastling, castlingPlanFor, planForDest } from "./castling.js";
|
|
15
|
+
import type { CastlingPlan } from "./castling.js";
|
|
16
|
+
export { detectCastling, castlingPlanFor, planForDest, };
|
|
17
|
+
export type { CastlingPlan };
|
|
33
18
|
export declare function makeMove(pos: Position, move: Move): Position;
|
|
34
19
|
export declare const play: typeof makeMove;
|
|
35
20
|
type CheckContext = {
|
|
@@ -93,21 +78,23 @@ export type VerboseMove = {
|
|
|
93
78
|
before: string;
|
|
94
79
|
after: string;
|
|
95
80
|
};
|
|
96
|
-
export type
|
|
81
|
+
export type HistoryEntry = {
|
|
97
82
|
readonly before: Position;
|
|
98
83
|
readonly after: Position;
|
|
99
84
|
readonly move: Move;
|
|
100
85
|
readonly san: string;
|
|
86
|
+
readonly boardUndo?: BoardUndo;
|
|
101
87
|
readonly prev_checkers?: SquareSet;
|
|
102
88
|
readonly prev_zobrist?: ZobristKey;
|
|
103
89
|
};
|
|
104
|
-
export type
|
|
90
|
+
export type { BoardUndo as Undo };
|
|
91
|
+
export { Board };
|
|
105
92
|
/**
|
|
106
93
|
* Unified root `Chess` (design D1): the chess.js-ergonomic mutable façade
|
|
107
94
|
* over the immutable engine core, extended with the high-performance
|
|
108
95
|
* bitboard surface, zero-alloc Zobrist hashing and 16-bit packed moves2, and
|
|
109
96
|
* native tree navigation. Lives at the ROOT entrypoint so the tree-shakeable
|
|
110
|
-
* `
|
|
97
|
+
* `gigachess/core` graph stays free of FEN/PGN/tree facade code.
|
|
111
98
|
*/
|
|
112
99
|
export declare class Chess {
|
|
113
100
|
#private;
|
|
@@ -212,6 +199,7 @@ export declare class Chess {
|
|
|
212
199
|
/** Live engine position (read-only view over the internal state). */
|
|
213
200
|
get pos(): Position;
|
|
214
201
|
get _pos(): Position;
|
|
202
|
+
get boardInstance(): Board;
|
|
215
203
|
/** Internal history log (read-only view; used by toTree). */
|
|
216
204
|
get historyEntries(): readonly HistoryEntry[];
|
|
217
205
|
/**
|
package/dist/chess.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chess.d.ts","sourceRoot":"","sources":["../src/chess.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"chess.d.ts","sourceRoot":"","sources":["../src/chess.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAEhD,OAAO,EAAE,KAAK,EAAE,KAAK,IAAI,IAAI,SAAS,EAAE,MAAM,YAAY,CAAC;AAE3D,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;AAa/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;AAGD,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,QAAQ,GAAG,OAAO,CA4C7D;AAED,w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