UNPKG

shogi.js

Version:
78 lines (77 loc) 1.38 kB
import Color from "./Color"; /** * 既定の初期局面 */ declare const presetDefinitions: { HIRATE: { board: string[]; turn: Color; }; KY: { board: string[]; turn: Color; }; KY_R: { board: string[]; turn: Color; }; KA: { board: string[]; turn: Color; }; HI: { board: string[]; turn: Color; }; HIKY: { board: string[]; turn: Color; }; "2": { board: string[]; turn: Color; }; "3": { board: string[]; turn: Color; }; "4": { board: string[]; turn: Color; }; "5": { board: string[]; turn: Color; }; "5_L": { board: string[]; turn: Color; }; "6": { board: string[]; turn: Color; }; "7_R": { board: string[]; turn: Color; }; "7_L": { board: string[]; turn: Color; }; "8": { board: string[]; turn: Color; }; "10": { board: string[]; turn: Color; }; }; export type IPreset = keyof typeof presetDefinitions; export declare const getInitialFromPreset: (preset: string) => any; declare const presets: string[]; export default presets; export declare const pieceHistogram: { [kind: string]: number; };