binmat
Version:
binmat simulator
9 lines (8 loc) • 479 B
TypeScript
import type { Card, Lane, State } from "./shared";
import { AttackerDeck, StatusCode } from "./shared";
export declare function doMoveDraw(state: State, deckToDrawFrom: Lane | AttackerDeck): {
status: StatusCode.Ok | StatusCode.DefenderWin;
cardDrawn: Card;
} | {
status: StatusCode.MadeMoveOnFinishedGame | StatusCode.DefenderDrewFromAttackerDeck | StatusCode.AttackerDrewFromBlockedLane | StatusCode.AttackerDrewFromEmptyDiscardAndDeck | StatusCode.AttackerWin;
};