Advertisement
Guest User

pokerBot

a guest
Jun 28th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 2.75 KB | None | 0 0
  1. bool isRealPair =
  2.                 (playerHand[0].Index == playerHand[1].Index) ||
  3.                 (playerHand[0].Index == flop1.Index) ||
  4.                 (playerHand[0].Index == flop2.Index) ||
  5.                 (playerHand[0].Index == flop3.Index) ||
  6.                 (playerHand[0].Index == turn.Index) ||
  7.                 (playerHand[0].Index == river.Index) ||
  8.                 (playerHand[1].Index == flop1.Index) ||
  9.                 (playerHand[1].Index == flop2.Index) ||
  10.                 (playerHand[1].Index == flop3.Index) ||
  11.                 (playerHand[1].Index == turn.Index) ||
  12.                 (playerHand[1].Index == river.Index)
  13.                 ;
  14.  
  15.             if (
  16.                 (playerHand[0].Suit != playerHand[1].Suit) &&
  17.                 (Math.Abs(playerHand[0].Index - playerHand[1].Index) <= 4) ||
  18.                 ((playerHand[0].Index == CardIndexType.Two && playerHand[1].Index == CardIndexType.Seven) ||
  19.                 (playerHand[0].Index == CardIndexType.Two && playerHand[1].Index == CardIndexType.Eight) ||
  20.                 (playerHand[0].Index == CardIndexType.Three && playerHand[1].Index == CardIndexType.Eight) ||
  21.                 (playerHand[0].Index == CardIndexType.Two && playerHand[1].Index == CardIndexType.Nine) ||
  22.                 (playerHand[0].Index == CardIndexType.Two && playerHand[1].Index == CardIndexType.Six))
  23.                 )
  24.             {
  25.                 //if (isRealPair ||
  26.                 //    isTwoPair ||
  27.                 //    isStraight ||
  28.                 //    isFlush ||
  29.                 //    isFullHouse ||
  30.                 //    isStraightFlush ||
  31.                 //    isFourCardFlush ||
  32.                 //    isFourCardStraight)
  33.                 if (isRealPair || isTwoPair || isThreeOfAKind || isStraight || isFlush || isFullHouse || isFourOfAKind || isStraightFlush || isFourCardFlush || isFourCardStraight)
  34.                 {
  35.                     if (isRealPair)
  36.                     {
  37.                         move.BetSize = 200;
  38.                     }
  39.                     if (isTwoPair)
  40.                     {
  41.                         move.BetSize = 300;
  42.                     }
  43.                 }
  44.                 else
  45.                 {
  46.                     {
  47.                         move.Fold = true;
  48.                     }
  49.                 }
  50.             }
  51.             //else if (isRealPair || isTwoPair || isThreeOfAKind || isStraight || isFlush || isFullHouse || isFourOfAKind || isStraightFlush || isFourCardFlush || isFourCardStraight)
  52.             //{
  53.             //    move.BetSize = 200;
  54.             //}
  55.             else if (opponentStack < 200)
  56.             {
  57.                 move.Fold = true;
  58.             }
  59.             else
  60.             {
  61.                 move.BetSize = minBet + 10;
  62.             }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement