public void PlayRound() { Round++; ActivePlayer = GetNextPlayer(); NewFaceUpCard = FaceDownPile.Pop(); if (FaceUpPile.Count > 0) { TopFaceUpCard = FaceUpPile.Peek(); } FaceUpPile.Push(NewFaceUpCard); }
public void AwardWithAPile(int playerIndex) { if (playerIndex < 0 || playerIndex >= _players.Count) { throw new ArgumentException("playerIndex"); } var awardingPlayer = _players[playerIndex]; awardingPlayer.TakePile(FaceUpPile); FaceUpPile.Clear(); }