From 8593af41ed5b91a980ef62f2bdfcec5de29b2023 Mon Sep 17 00:00:00 2001 From: a Date: Wed, 22 Mar 2023 17:03:47 -0500 Subject: [PATCH] return undefined factory to show stop --- src/lib/game.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/game.ts b/src/lib/game.ts index 5c0a38f..e500dcf 100644 --- a/src/lib/game.ts +++ b/src/lib/game.ts @@ -24,7 +24,7 @@ export const DefaultRandom:RandomSource = { } export interface ActionFactory { - next(game: Game): Action + next(game: Game): Action | undefined } // an action is in charge of the entire state transition