Skip to content

Commit

Permalink
New reprocess history function
Browse files Browse the repository at this point in the history
  • Loading branch information
joshbuddy committed Mar 14, 2024
1 parent f699dde commit fad868a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions interface.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ Must export an object `game` with two functions, `initialState` and `processMove
```ts
initialState(setup: SetupState): GameUpdate
processMove(previousState: GameStartedState, move: Move): GameUpdate
reprocessHistory(setup: SetupState, moves: Move[]): {updates: GameUpdate[], movesCompleted: number}

type Player = {
id: string
Expand Down Expand Up @@ -68,6 +69,7 @@ type GameFinishedState = {
type GameState = GameStartedState | GameFinishedState

type SetupState = {
randomSeed: string
players: Player[]
settings: GameSettings
}
Expand Down

0 comments on commit fad868a

Please sign in to comment.