UNPKG

binmat

Version:
9 lines (8 loc) 479 B
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; };