コード例 #1
0
ファイル: Bot.cs プロジェクト: DonovanDeSmedt/ProjectPoker2
 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;
 }
コード例 #2
0
ファイル: Bot.cs プロジェクト: DonovanDeSmedt/ProjectPoker2
 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;
 }
コード例 #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;
 }