Fixed: Some exception not managed fixed

This commit is contained in:
rubenpirreram
2026-05-15 16:01:09 +02:00
parent f3aaab516f
commit df1b41b666
6 changed files with 131 additions and 90 deletions
@@ -90,20 +90,23 @@ public class TUI implements IView {
*/
@Override
public void render() {
if(model.currentState.getGameStage().equals(GameStages.TOTEM_CHOICE))
if(model != null)
{
renderTotems();
if(model.currentState.getGameStage().equals(GameStages.TOTEM_CHOICE))
{
renderTotems();
}
else if(model.currentState.getGameStage().equals(GameStages.ENDED))
{
//renderStanding
renderBoard();
}
else
{
renderBoard();
}
System.out.println("\nYOUR ACTION:");
}
else if(model.currentState.getGameStage().equals(GameStages.ENDED))
{
//renderStanding
renderBoard();
}
else
{
renderBoard();
}
System.out.println("\nYOUR ACTION:");
}
/**