Ejemplo n.º 1
0
 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;
 }
Ejemplo n.º 2
0
 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;
 }
Ejemplo n.º 3
0
 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;
 }