UNPKG

belote

Version:

A TypeScript library for playing Belote card game with bot support.

44 lines 2.74 kB
import * as Manager from './core/manager'; import * as Types from './core/types'; import * as Bot from './core/bot'; export * from './core/manager'; export * from './core/types'; export * from './core/utils'; export * from './core/bot'; declare const _default: { BotAI: typeof Bot.BotAI; cardColors: readonly ["hearts", "diamonds", "clubs", "spades"]; cardTypes: readonly ["ace", "king", "queen", "jack", "ten", "nine", "eight", "seven"]; cardTypeOrder: Types.CardType[]; cardColorsLocal: readonly ["herc", "karo", "tref", "pik"]; cardTypesLocal: readonly ["as", "kralj", "baba", "decko", "deset", "devet", "osam", "sedam"]; cardTypeOrderLocal: Types.CardTypeLocal[]; CardPoints: typeof Types.CardPoints; CardPointsAdut: typeof Types.CardPointsAdut; Callings: typeof Types.Callings; GamePhase: typeof Types.GamePhase; mulberry32(seed: number): () => number; shuffleCards(deck: Types.Card[], times?: number, rng?: () => number): Types.Card[]; getCardValue(card: Types.Card, adut: Types.CardColor): Types.CardPointsAdut | Types.CardPoints; firstLetterUpperCase<T extends string>(str: T): Capitalize<T>; getCardImageUrl(card: Types.Card, size: "large" | "medium" | "small" | undefined, imageProvider: string): string; getCardColorImageUrl(color: Types.CardColor, size: "large" | "medium" | "small" | undefined, imageProvider: string): string; createDeck(shuffle?: number): Types.Card[]; isConsecutiveSequence(cards: Types.Card[]): boolean; validateCalling(cards: Types.Card[], adut: Types.CardColor): Types.CallingResult | null; getHighestCall(calls: Types.CallingsCall[]): Types.CallingsCall | null; compareCallStrength(call1: Types.CallingsCall, call2: Types.CallingsCall): number; getHighestCardInSequence(cards: Types.Card[]): Types.Card; canPlayCard(card: Types.Card, currentTrick: Types.PlayedCard[], adut: Types.CardColor, playerCards: Types.Card[]): boolean; findLegalCard(currentTrick: Types.PlayedCard[], adut: Types.CardColor, playerCards: Types.Card[]): Types.Card | null; canBeatCard(card: Types.Card, targetCard: Types.Card, adut: Types.CardColor): boolean; getHighestTrumpInTrick(trick: Types.PlayedCard[], adut: Types.CardColor): Types.Card | null; getHighestNonTrumpInTrick(trick: Types.PlayedCard[], adut: Types.CardColor): Types.Card | null; cardColorLocalized(color: Types.CardColor): Types.CardColorLocal; cardTypeLocalized(type: Types.CardType): Types.CardTypeLocal; normalizeLocalColor(color: Types.CardColorLocal): Types.CardColor; normalizeLocalType(type: Types.CardTypeLocal): Types.CardType; Belote: typeof Manager.Belote; }; export default _default; //# sourceMappingURL=index.d.ts.map