belote
Version:
A TypeScript library for playing Belote card game with bot support.
10 lines (9 loc) • 592 B
TypeScript
import { Card, CardColor, Player, PlayedCard, AllPossibleCalls } from './types';
export declare class BotAI {
static decideBid(player: Player): CardColor | 'pass';
static decideCalling(player: Player, adut: CardColor): Card[];
static decideCardToPlay(player: Player, currentTrick: PlayedCard[], adut: CardColor): Card;
static findAllPossibleCalls(cards: Card[], adut: CardColor): AllPossibleCalls[];
static chooseBestLeadingCard(cards: Card[], adut: CardColor): Card;
static chooseBestFollowingCard(cards: Card[], currentTrick: PlayedCard[], adut: CardColor): Card;
}