improvements

This commit is contained in:
Michal Vrba
2026-08-28 16:34:40 +02:00
parent 4803bc22a6
commit 02bca7c34a
212 changed files with 622 additions and 112 deletions
+10 -1
View File
@@ -5,6 +5,7 @@ public enum TurnState
Playing,
SelectingSuit,
PassScreen,
RoundOver,
GameOver
}
@@ -25,7 +26,15 @@ public class GameState
public Player? PendingHornikPlayer { get; set; }
public Card? TopCard => DiscardPile.Count > 0 ? DiscardPile[^1] : null;
// Olympijský režim (Turnaj)
public int RoundNumber { get; set; } = 1;
public bool IsRoundOver { get; set; } = false;
public Player? RoundLoser { get; set; }
public Player? MatchWinner { get; set; }
public bool IsMatchOver { get; set; } = false;
public Player CurrentPlayer => Players.Count > 0 ? Players[CurrentPlayerIndex % Players.Count] : new Player();
public int ActivePlayersCount => Players.Count(p => !p.HasFinished);
public int ActivePlayersCount => Players.Where(p => !p.IsEliminated).Count(p => !p.HasFinished);
public List<Player> ActiveTournamentPlayers => Players.Where(p => !p.IsEliminated).ToList();
}