diff --git a/ui/src/Game.tsx b/ui/src/Game.tsx index daa936f..27ba994 100644 --- a/ui/src/Game.tsx +++ b/ui/src/Game.tsx @@ -370,14 +370,15 @@ export function Game(props: { } useEffect(() => { - logDispatch(

Turn {turnCount}

); - logDispatch(
{playerTurnName}'s turn
) - setConfirmedScorePoints(-1); - trayDispatch({action: TileDispatchActionType.RETRIEVE}); - if(playerTurnName != props.settings.playerName && !isGameOver) { - runAI(); + if(!isGameOver){ + logDispatch(

Turn {turnCount}

); + logDispatch(
{playerTurnName}'s turn
) + setConfirmedScorePoints(-1); + trayDispatch({action: TileDispatchActionType.RETRIEVE}); + if(playerTurnName != props.settings.playerName && !isGameOver) { + runAI(); + } } - }, [turnCount]);