Beispiel #1
0
        public void MakeBeliveMove(BeliveMove move, Guid nextMoverId, Guid loserId, IReadOnlyCollection <PlayingCard> takedLoserCards)
        {
            var loser = Players.FirstOrDefault(p => p.Player.Id == loserId);

            loser.PlayingCards.AddRange(takedLoserCards);

            CurrentRound.AddMove(move);
            CurrentRound.End(loser.Player);

            NextRound();

            CurrentMover = Players.First(p => p.Player.Id == nextMoverId).Player;
        }