calcHandsChance

This commit is contained in:
floty
2008-10-16 20:10:48 +00:00
parent f1a9459fc6
commit 7f25130f66
5 changed files with 229 additions and 29 deletions
+1 -25
View File
@@ -2952,30 +2952,6 @@ void LocalPlayer::evaluation(int bet, int raise) {
}
int LocalPlayer::preflopCardsValue(int* cards) {
// Code der HoleCards ermitteln
if(cards[0]%13 == cards[1]%13) {
return ((cards[0]%13)*1000 + (cards[0]%13)*10);
} else {
if(cards[0]%13 < cards[1]%13) {
if(cards[0]/13 == cards[1]/13) {
return ((cards[0]%13)*1000 + (cards[1]%13)*10 + 1);
} else {
return ((cards[0]%13)*1000 + (cards[1]%13)*10);
}
} else {
if(cards[0]/13 == cards[1]/13) {
return ((cards[1]%13)*1000 + (cards[0]%13)*10 + 1);
} else {
return ((cards[1]%13)*1000 + (cards[0]%13)*10);
}
}
}
}
int LocalPlayer::flopCardsValue(int* cards) {
int array[5][3];
@@ -3626,7 +3602,7 @@ void LocalPlayer::calcMyOdds() {
case 0: {
handCode = preflopCardsValue(myCards);
handCode = myCardsValue->holeCardsToIntCode(myCards);
// übergang solange preflopValue und flopValue noch nicht bereinigt
int players = currentHand->getActivePlayerList()->size();