UNPKG

binmat

Version:
9 lines (8 loc) 350 B
import type { Move, State } from "./shared"; import { StatusCode } from "./shared"; export declare function doMove(state: State, move: Move): { status: StatusCode.Ok | StatusCode.AttackerWin | StatusCode.DefenderWin; binlog: string[]; } | { status: Exclude<StatusCode, StatusCode.Ok | StatusCode.AttackerWin | StatusCode.DefenderWin>; };