Skip to content

Commit

Permalink
Add score/summary
Browse files Browse the repository at this point in the history
  • Loading branch information
joshbuddy committed Dec 20, 2023
1 parent b38201d commit e15f16f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion interface.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ type GameSettings = Record<string, any>
type GameStartedState = {
currentPlayers: number[]
phase: 'started'
scores?: Record<string, number>
} & Record<string, any>

type GameFinishedState = {
Expand All @@ -68,6 +69,7 @@ type SetupState = {
type PlayerState = {
position: number
state: PlayerGameState
summary: string
}

type GameUpdate = {
Expand All @@ -84,7 +86,7 @@ type Move = {
### UI
The game ui occurs in three phases "new", "started" and "finished".
The game ui occurs in three phases "new", "started" and "finished".
During "new", it will recv the following messages.
Expand Down

0 comments on commit e15f16f

Please sign in to comment.