stack-the-deck (#1)

Allow for redrawing or explicitly selecting a card for replacement.

Co-authored-by: Gavin McDonald <gavinmcdoh@gmail.com>
Reviewed-on: #1
This commit was merged in pull request #1.
This commit is contained in:
2025-06-13 07:38:51 -04:00
parent c4f4b09f18
commit 5444e25249
14 changed files with 376 additions and 20 deletions

View File

@@ -1,5 +1,8 @@
export type CardStyle = 'standard' | 'color' | 'grayscale';
// all = both + back
export type Deck = 'high' | 'common' | 'both' | 'back' | 'all';
export interface Settings {
positionBack: boolean;
positionFront: boolean;
@@ -28,6 +31,7 @@ export interface TarokkaBase {
description: string;
aria: string;
back: boolean;
deck: Deck;
suit: 'Coins' | 'Glyphs' | 'High Deck' | 'Stars' | 'Swords' | null;
extension?: string;
}
@@ -90,6 +94,7 @@ export interface GameUpdate {
export interface ClientUpdate {
gameID: string;
cardIndex: number;
cardID?: string;
}
export interface Layout {