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
Loading
Checking pipeline status
......@@ -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