Feat: Game UI optimization #342

Merged
j.kropff merged 15 commits from feat/game-ui-optimization into main 2026-05-16 22:52:37 +02:00
Showing only changes of commit ede298a08f - Show all commits
@@ -784,7 +784,9 @@ public class TaskbarController {
int candidate = (normalizedStart + i) % size; int candidate = (normalizedStart + i) % size;
Player player = state.players.get(candidate); Player player = state.players.get(candidate);
if (player != null && player.getState() != PlayerState.FOLDED && player.getChips() > 0) { if (player != null
&& player.getState() != PlayerState.FOLDED
&& player.getChips() > 0) {
return candidate; return candidate;
} }
} }
@@ -862,7 +864,8 @@ public class TaskbarController {
if (isPreflop(state.phase)) { if (isPreflop(state.phase)) {
firstIndex = firstIndex =
findFirstActingPlayerIndex( findFirstActingPlayerIndex(
state, (size == 2) ? state.dealer : (state.dealer + DEALER_OFFSET) % size); state,
(size == 2) ? state.dealer : (state.dealer + DEALER_OFFSET) % size);
} else { } else {
firstIndex = findFirstActingPlayerIndex(state, (state.dealer + 1) % size); firstIndex = findFirstActingPlayerIndex(state, (state.dealer + 1) % size);
} }