UNPKG

binmat

Version:
10 lines (9 loc) 544 B
import type { Card, CardValue, Lane, State } from "./shared"; import { AttackerDiscardPile, StatusCode } from "./shared"; export declare function doMoveDiscard(state: State, card: Card | CardValue, discardPile: Lane | AttackerDiscardPile): { status: StatusCode.Ok | StatusCode.DefenderWin; cardDiscarded: Card; cardsDrawn: [Card, Card] | undefined; } | { status: StatusCode.MadeMoveOnFinishedGame | StatusCode.PlayedUnownedCard | StatusCode.DiscardedToOpponentDiscardPile | StatusCode.AttackerDiscardedToEmptyDiscardAndDeck; };