feat(blackjack): implement game start and controls functionality
All checks were successful
All checks were successful
This commit is contained in:
parent
d0ba0eb71d
commit
99f9f8d3c3
9 changed files with 320 additions and 54 deletions
|
@ -0,0 +1,23 @@
|
|||
export type Suit = 'HEARTS' | 'DIAMONDS' | 'CLUBS' | 'SPADES';
|
||||
|
||||
export interface Card {
|
||||
suit: Suit;
|
||||
rank: string;
|
||||
hidden: boolean;
|
||||
}
|
||||
|
||||
export interface BlackjackGame {
|
||||
id: number;
|
||||
state: string;
|
||||
bet: number;
|
||||
playerCards: Card[];
|
||||
dealerCards: Card[];
|
||||
userId: number;
|
||||
}
|
||||
|
||||
export const suitSymbols: Record<Suit, string> = {
|
||||
HEARTS: '♥',
|
||||
DIAMONDS: '♦',
|
||||
CLUBS: '♣',
|
||||
SPADES: '♠',
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue