diff --git a/docs/chess.ts.chess.hextree.md b/docs/chess.ts.chess.hextree.md new file mode 100644 index 0000000..29a3b96 --- /dev/null +++ b/docs/chess.ts.chess.hextree.md @@ -0,0 +1,12 @@ + + +[Home](./index.md) > [chess.ts](./chess.ts.md) > [Chess](./chess.ts.chess.md) > [hexTree](./chess.ts.chess.hextree.md) + +## Chess.hexTree property + + +**Signature:** + +```typescript +get hexTree(): Readonly>; +``` diff --git a/docs/chess.ts.chess.md b/docs/chess.ts.chess.md index 0051201..76667ba 100644 --- a/docs/chess.ts.chess.md +++ b/docs/chess.ts.chess.md @@ -23,6 +23,7 @@ export declare class Chess | --- | --- | --- | --- | | [currentNode](./chess.ts.chess.currentnode.md) | readonly | Readonly<TreeNode<GameState>> | | | [header](./chess.ts.chess.header.md) | | HeaderMap | | +| [hexTree](./chess.ts.chess.hextree.md) | readonly | Readonly<TreeNode<HexState>> | | | [state](./chess.ts.chess.state.md) | readonly | Readonly<[BoardState](./chess.ts.boardstate.md)> | | | [tree](./chess.ts.chess.tree.md) | readonly | Readonly<TreeNode<GameState>> | | diff --git a/src/chess.ts b/src/chess.ts index 21288f6..ec76dc4 100755 --- a/src/chess.ts +++ b/src/chess.ts @@ -83,6 +83,11 @@ export class Chess { return this.boardState } + /** @public */ + public get hexTree(): Readonly> { + return this._tree + } + /** @public */ public get tree(): Readonly> { return this._tree.map((node) => hexToGameState(node))