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