Version 1.0 #40

Merged
j23f0779 merged 947 commits from development2 into main 2024-12-13 10:26:49 +01:00
Showing only changes of commit 876c238db3 - Show all commits

View File

@@ -62,9 +62,10 @@ public Color next(Game game) {
int current = game.getActiveColor().ordinal(); int current = game.getActiveColor().ordinal();
int next = current + 1; int next = (current + 1) % 4;
while (!colorsInGame.contains(Color.values()[next])) { while (!colorsInGame.contains(Color.values()[next])) {
next++; next++;
next %= 4;
} }
return Color.values()[next]; return Color.values()[next];