Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bool isRealPair =
- (playerHand[0].Index == playerHand[1].Index) ||
- (playerHand[0].Index == flop1.Index) ||
- (playerHand[0].Index == flop2.Index) ||
- (playerHand[0].Index == flop3.Index) ||
- (playerHand[0].Index == turn.Index) ||
- (playerHand[0].Index == river.Index) ||
- (playerHand[1].Index == flop1.Index) ||
- (playerHand[1].Index == flop2.Index) ||
- (playerHand[1].Index == flop3.Index) ||
- (playerHand[1].Index == turn.Index) ||
- (playerHand[1].Index == river.Index)
- ;
- if (
- (playerHand[0].Suit != playerHand[1].Suit) &&
- (Math.Abs(playerHand[0].Index - playerHand[1].Index) <= 4) ||
- ((playerHand[0].Index == CardIndexType.Two && playerHand[1].Index == CardIndexType.Seven) ||
- (playerHand[0].Index == CardIndexType.Two && playerHand[1].Index == CardIndexType.Eight) ||
- (playerHand[0].Index == CardIndexType.Three && playerHand[1].Index == CardIndexType.Eight) ||
- (playerHand[0].Index == CardIndexType.Two && playerHand[1].Index == CardIndexType.Nine) ||
- (playerHand[0].Index == CardIndexType.Two && playerHand[1].Index == CardIndexType.Six))
- )
- {
- //if (isRealPair ||
- // isTwoPair ||
- // isStraight ||
- // isFlush ||
- // isFullHouse ||
- // isStraightFlush ||
- // isFourCardFlush ||
- // isFourCardStraight)
- if (isRealPair || isTwoPair || isThreeOfAKind || isStraight || isFlush || isFullHouse || isFourOfAKind || isStraightFlush || isFourCardFlush || isFourCardStraight)
- {
- if (isRealPair)
- {
- move.BetSize = 200;
- }
- if (isTwoPair)
- {
- move.BetSize = 300;
- }
- }
- else
- {
- {
- move.Fold = true;
- }
- }
- }
- //else if (isRealPair || isTwoPair || isThreeOfAKind || isStraight || isFlush || isFullHouse || isFourOfAKind || isStraightFlush || isFourCardFlush || isFourCardStraight)
- //{
- // move.BetSize = 200;
- //}
- else if (opponentStack < 200)
- {
- move.Fold = true;
- }
- else
- {
- move.BetSize = minBet + 10;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement