@my-games/2048-core 0.1.0 → 0.3.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/dist/ai.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { Cell, Direction } from './types';
1
+ import { Cell, Direction } from './types';
2
2
  /** 静态评估:值越靠近「蛇头」越大越好;空位多给额外奖励。 */
3
3
  export declare function evaluate(grid: Cell[][], weights: number[][]): number;
4
4
  export interface BestMoveOptions {
package/dist/board.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { Cell, Direction } from './types';
1
+ import { Cell, Direction } from './types';
2
2
  /**
3
3
  * 纯函数棋盘工具:只用 `Cell[][]`(0 = 空),不涉及 tile id。
4
4
  *
package/dist/game.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { BoardSize, Cell, Direction, GameState, RandomSource, SaveStorage } from './types';
1
+ import { BoardSize, Cell, Direction, GameState, RandomSource, SaveStorage } from './types';
2
2
  /**
3
3
  * Game2048 —— 2048 状态机与规则实现。
4
4
  *