@sillyal/dominion
Version:
Representation of Dominion, a deck-building card game created by Donald X. Vaccarino and published by Rio Grande Games.
19 lines (18 loc) • 541 B
TypeScript
import { Card } from "./card";
import { Player } from "./player";
export declare class Game {
trash: Card[];
piles: Pile[];
players: Player[];
constructor(players: Player[], piles: Pile[]);
ended(): boolean;
trashACard(player: Player, card: Card): void;
buyACard(player: Player, card: Card): void;
gainACard(player: Player, card: Card): void;
gainACardToHand(player: Player, card: Card): void;
}
export declare class Pile {
card: Card;
count: number;
constructor(card: Card, count: number);
}