Add lobby and pack concept.

This commit is contained in:
Greyson Parrelli
2026-07-23 22:01:54 -04:00
parent 9d9acc4577
commit e74f983470
18 changed files with 665 additions and 111 deletions
+16
View File
@@ -92,6 +92,13 @@ export interface LogEntry {
spawn?: string // 'apple' | 'bee'
}
export interface PackInfo {
id: string
name: string
emoji: string
playable: boolean
}
export interface GameView {
gameId: string
code: string
@@ -99,6 +106,11 @@ export interface GameView {
round: number
maxRounds: number
maxPets: number
pack: string
packs: PackInfo[]
hostSeat: number
minPlayers: number
maxPlayers: number
youSeat: number
turn: number
shopRow: Card[]
@@ -112,6 +124,10 @@ export interface GameView {
}
export type ClientMessage =
| { type: 'setPack'; pack: string }
| { type: 'addBot'; difficulty: string }
| { type: 'removePlayer'; target: string }
| { type: 'start' }
| { type: 'buy'; row: number }
| { type: 'sell'; cards: string[] }
| { type: 'trade'; cards: string[] }