private void CheckWinningHand(int amountOfPlayers) { allCards = Table.Pokercards.Where(c => c.FaceUp).ToList(); foreach (var card in PokerCards) { allCards.Add(card); } winningHand = new Calculations.WinningHand(allCards); // currentHands toont welke winninghands we allemaal al hebben // bv pair & two pair & three-of-a-kind als we een full house hebben. currentHands = winningHand.checkWinningHand(); // currentHand = toont ons de hoogste winningHand; CurrentHand = winningHand.GetWinningHands(); WinningCards = winningHand.WinningCards; }
public void SetCurrentHand() { List<PokerCard> allCards = Table.Pokercards.Where(c => c.FaceUp).ToList(); foreach (var card in PokerCards) { allCards.Add(card); } WinningHand winningHand = new WinningHand(allCards); winningHand.checkWinningHand(); CurrentHand = winningHand.GetWinningHands(); WinningCards = winningHand.WinningCards; }