public void GetCardsFromDesk(DeskOfCards deskOfCards) { while (deskOfCards.Cards.Count != 0) { foreach (Player item in Players) { if (deskOfCards.Cards.Count != 0) { item.GetCard(deskOfCards); } } } }
public void GetCard(DeskOfCards deskOfCards) { Cards.Add(deskOfCards.GetCard()); }
public Game() { DeskOfCards = new DeskOfCards(); Players = new AllPlayers(4); // сам здивувався, гра не ламається коли (2,3,4) гравця Winner = -1; }