cards render well

This commit is contained in:
2025-08-03 12:30:26 -04:00
parent e6cee7c2fa
commit e4f6e1899d
7 changed files with 46 additions and 12 deletions

View File

@@ -1,9 +1,13 @@
export type Suit = "hearts" | "diamonds" | "spades" | "clubs";
export type Suit = "heart" | "diamond" | "spade" | "club";
export type Card = {
suit: Suit;
value: number;
};
type Rank = number | "jack" | "queen" | "king" | "ace";
export type Card =
| {
kind: "normal";
suit: Suit;
rank: Rank;
}
| { kind: "joker"; color: "red" | "black" };
export type Pile = Card[];
export type Stack = Card[];