From 1ac87d8c59b1f4898f562cd998a5992270350bcb Mon Sep 17 00:00:00 2001 From: a Date: Wed, 22 Mar 2023 16:57:39 -0500 Subject: [PATCH] Action factory --- src/lib/game.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lib/game.ts b/src/lib/game.ts index dc78e59..decc2a0 100644 --- a/src/lib/game.ts +++ b/src/lib/game.ts @@ -23,6 +23,9 @@ export const DefaultRandom:RandomSource = { } } +export interface ActionFactory { + next(game: Game): Action +} // an action is in charge of the entire state transition export interface Action {