Remove turn log message after game over
This commit is contained in:
parent
2fa28ce3d4
commit
880667b80e
1 changed files with 8 additions and 7 deletions
|
@ -370,14 +370,15 @@ export function Game(props: {
|
||||||
}
|
}
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
logDispatch(<h4>Turn {turnCount}</h4>);
|
if(!isGameOver){
|
||||||
logDispatch(<div>{playerTurnName}'s turn</div>)
|
logDispatch(<h4>Turn {turnCount}</h4>);
|
||||||
setConfirmedScorePoints(-1);
|
logDispatch(<div>{playerTurnName}'s turn</div>)
|
||||||
trayDispatch({action: TileDispatchActionType.RETRIEVE});
|
setConfirmedScorePoints(-1);
|
||||||
if(playerTurnName != props.settings.playerName && !isGameOver) {
|
trayDispatch({action: TileDispatchActionType.RETRIEVE});
|
||||||
runAI();
|
if(playerTurnName != props.settings.playerName && !isGameOver) {
|
||||||
|
runAI();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}, [turnCount]);
|
}, [turnCount]);
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue