binmat
Version:
binmat simulator
9 lines (8 loc) • 350 B
TypeScript
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>;
};