Skip to content
Snippets Groups Projects
Commit 85a4fe5f authored by SAHIN Melis damla's avatar SAHIN Melis damla
Browse files

implémenter la classe GameOfLifeState

parent 076dd4be
No related branches found
No related tags found
No related merge requests found
Pipeline #40916 failed
...@@ -42,15 +42,16 @@ public enum GameOfLifeState implements State<GameOfLifeState> { ...@@ -42,15 +42,16 @@ public enum GameOfLifeState implements State<GameOfLifeState> {
if (count == 3) { if (count == 3) {
return ALIVE; return ALIVE;
} }
break;
case ALIVE: case ALIVE:
if (count == 3) { if (count == 3) {
return ALIVE; return ALIVE;
} else if (count == 2) { } else if (count == 2) {
return ALIVE; return ALIVE;
} }
default: break;
return DEAD;
} }
return DEAD;
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment