/** What a game's table offers: how many may sit at it, and how long a game may last. * * @example * ```ts * import type { CardGameTable } from "@johnmorrisdotca/toranpu"; * import { CARD_GAME_TABLES } from "@johnmorrisdotca/toranpu"; * * const value: CardGameTable = CARD_GAME_TABLES.hearts; * console.log(value.defaultPlayers); * ``` */ export type CardGameTable = { /** The fewest players a table may start with. */ fewestPlayers: number; /** The most. */ mostPlayers: number; /** The usual number. */ defaultPlayers: number; /** The lengths of game offered, in the game's own terms (below). */ sizes: readonly number[]; /** The usual length. */ defaultSize: number; }; /** * THE CARD GAMES, and the tables each offers. A card game's "size" is how * long the game lasts, in its own terms: * * - Hearts, three or four: the score that ends it, 50 or 100 (the usual game). * - Big Two, two to four: how many deals, 1, 3 or 5, the fewest points winning. * - President, three to eight: how many rounds, 3, 5 or 7, the most points winning. * - Go Fish, two to six: one deal, played until every book is down. * - Crazy Eights, two to seven: the score that wins, 50, 100 or 200. * - Spades, four in two partnerships: the score that wins, 200, 300 or 500. * - Gin Rummy, two: the score that wins, 50, 100 or 150. * - Euchre, four in two partnerships: the score that wins, 5 or 10. * - Cribbage, for two: the score that wins, 61 (once round the board) or 121. * - Oh Hell, three or four each for themselves: how many deals, 7 (one card up to seven) or 13 (and back down). * - War, for two: how many turns of the cards it may last, 25, 50, 100, 200 or 1000, the most cards winning when they run out. * * Every seat may be a person's or a computer's, so a table of one person and * three computers is a game of Hearts as much as four people round a phone. * * @example * ```ts * import type { CardGameKind } from "@johnmorrisdotca/toranpu"; * * const value: CardGameKind = "hearts"; * console.log(value); * ``` */ export type CardGameKind = "hearts" | "bigTwo" | "president" | "goFish" | "crazyEights" | "spades" | "ginRummy" | "euchre" | "cribbage" | "ohHell" | "war" | "stackUp"; /** The twelve kinds by name, for code that would rather not type a string twice. * * @example * ```ts * import { CARD_GAME_KINDS } from "@johnmorrisdotca/toranpu"; * console.log(CARD_GAME_KINDS); * ``` */ export declare const CARD_GAME_KINDS: { readonly hearts: "hearts"; readonly bigTwo: "bigTwo"; readonly president: "president"; readonly goFish: "goFish"; readonly crazyEights: "crazyEights"; readonly spades: "spades"; readonly ginRummy: "ginRummy"; readonly euchre: "euchre"; readonly cribbage: "cribbage"; readonly ohHell: "ohHell"; readonly war: "war"; readonly stackUp: "stackUp"; }; /** Every card game. * * @example * ```ts * import { CARD_GAME_LIST } from "@johnmorrisdotca/toranpu"; * console.log(CARD_GAME_LIST); * ``` */ export declare const CARD_GAME_LIST: readonly CardGameKind[]; /** How long each game lasts, in its own terms (see above). * * @example * ```ts * import { HEARTS_SIZES } from "@johnmorrisdotca/toranpu"; * console.log(HEARTS_SIZES); * ``` */ export declare const HEARTS_SIZES: { readonly short: 50; readonly full: 100; }; /** How many deals a game of Big Two may last. * * @example * ```ts * import { BIG_TWO_DEALS } from "@johnmorrisdotca/toranpu"; * console.log(BIG_TWO_DEALS); * ``` */ export declare const BIG_TWO_DEALS: readonly [1, 3, 5]; /** How many rounds a game of President may last. * * @example * ```ts * import { PRESIDENT_ROUNDS } from "@johnmorrisdotca/toranpu"; * console.log(PRESIDENT_ROUNDS); * ``` */ export declare const PRESIDENT_ROUNDS: readonly [3, 5, 7]; /** Go Fish is one deal: its only size is 1. * * @example * ```ts * import { GO_FISH_SIZES } from "@johnmorrisdotca/toranpu"; * console.log(GO_FISH_SIZES); * ``` */ export declare const GO_FISH_SIZES: readonly [1]; /** The scores a game of Crazy Eights may be played to. * * @example * ```ts * import { CRAZY_EIGHTS_SIZES } from "@johnmorrisdotca/toranpu"; * console.log(CRAZY_EIGHTS_SIZES); * ``` */ export declare const CRAZY_EIGHTS_SIZES: readonly [50, 100, 200]; /** The scores a game of Spades may be played to. * * @example * ```ts * import { SPADES_SIZES } from "@johnmorrisdotca/toranpu"; * console.log(SPADES_SIZES); * ``` */ export declare const SPADES_SIZES: readonly [200, 300, 500]; /** The scores a game of Gin Rummy may be played to. * * @example * ```ts * import { GIN_SIZES } from "@johnmorrisdotca/toranpu"; * console.log(GIN_SIZES); * ``` */ export declare const GIN_SIZES: readonly [50, 100, 150]; /** The scores a game of Euchre may be played to. * * @example * ```ts * import { EUCHRE_SIZES } from "@johnmorrisdotca/toranpu"; * console.log(EUCHRE_SIZES); * ``` */ export declare const EUCHRE_SIZES: readonly [5, 10]; /** The scores a game of Cribbage may be played to: once round the board, or twice. * * @example * ```ts * import { CRIBBAGE_SIZES } from "@johnmorrisdotca/toranpu"; * console.log(CRIBBAGE_SIZES); * ``` */ export declare const CRIBBAGE_SIZES: readonly [61, 121]; /** How many deals a game of Oh Hell may last: up to seven cards, or up and back down. * * @example * ```ts * import { OH_HELL_DEALS } from "@johnmorrisdotca/toranpu"; * console.log(OH_HELL_DEALS); * ``` */ export declare const OH_HELL_DEALS: readonly [7, 13]; /** How many turns of the cards a game of War may last before the player holding more cards wins. * * @example * ```ts * import { WAR_ROUNDS } from "@johnmorrisdotca/toranpu"; * console.log(WAR_ROUNDS); * ``` */ export declare const WAR_ROUNDS: readonly [25, 50, 100, 200, 1000]; /** The cards in each player's stock pile at a game of Stack Up: the longer, the longer the game. * * @example * ```ts * import { STACK_UP_SIZES } from "@johnmorrisdotca/toranpu"; * console.log(STACK_UP_SIZES); * ``` */ export declare const STACK_UP_SIZES: readonly [10, 15, 20]; /** Every game's table: the fewest, the most and the usual number of players, the lengths of game offered and the usual one. * * @example * ```ts * import { CARD_GAME_TABLES } from "@johnmorrisdotca/toranpu"; * console.log(Object.keys(CARD_GAME_TABLES)); * ``` */ export declare const CARD_GAME_TABLES: Record;