adds activePlayerList and runningPlayerList (XIX): bugfixes
This commit is contained in:
@@ -212,19 +212,26 @@ void LocalBeRoPreflop::run() {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
PlayerListConstIterator currentPlayersTurnConstIt;
|
||||||
// exceptions
|
// exceptions
|
||||||
// if next player is small blind and only all-in-big-blind with less than smallblind amount is nonfold too -> preflop is over
|
// if in first Preflop Round next player is small blind and only all-in-big-blind with less than smallblind amount is nonfold too -> preflop is over
|
||||||
|
if(getFirstRound()) {
|
||||||
PlayerListConstIterator bigBlindPositionIt = getMyHand()->getActivePlayerIt(getBigBlindPositionId());
|
PlayerListConstIterator bigBlindPositionIt = getMyHand()->getActivePlayerIt(getBigBlindPositionId());
|
||||||
assert(bigBlindPositionIt != getMyHand()->getActivePlayerList()->end());
|
assert(bigBlindPositionIt != getMyHand()->getActivePlayerList()->end());
|
||||||
|
|
||||||
PlayerListConstIterator currentPlayersTurnConstIt = getMyHand()->getRunningPlayerIt( getCurrentPlayersTurnId() );
|
currentPlayersTurnConstIt = getMyHand()->getRunningPlayerIt( getCurrentPlayersTurnId() );
|
||||||
assert(currentPlayersTurnConstIt != getMyHand()->getRunningPlayerList()->end());
|
assert(currentPlayersTurnConstIt != getMyHand()->getRunningPlayerList()->end());
|
||||||
|
|
||||||
if((*currentPlayersTurnConstIt)->getMyButton() == BUTTON_SMALL_BLIND && (*bigBlindPositionIt)->getMySet() <= getSmallBlind() && getMyHand()->getRunningPlayerList()->size() == 1) {
|
int nonFoldPlayerCounter = 0;
|
||||||
|
for (it_c=getMyHand()->getActivePlayerList()->begin(); it_c!=getMyHand()->getActivePlayerList()->end(); it_c++) {
|
||||||
|
if ((*it_c)->getMyAction() != PLAYER_ACTION_FOLD) nonFoldPlayerCounter++;
|
||||||
|
}
|
||||||
|
|
||||||
|
if((*currentPlayersTurnConstIt)->getMyButton() == BUTTON_SMALL_BLIND && (*bigBlindPositionIt)->getMySet() <= getSmallBlind() && nonFoldPlayerCounter == 2) {
|
||||||
setFirstRound(false);
|
setFirstRound(false);
|
||||||
allHighestSet = true;
|
allHighestSet = true;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -301,6 +308,8 @@ void LocalBeRoPreflop::run() {
|
|||||||
|
|
||||||
// getMyHand()->getPlayerArray()[getPlayersTurn()]->setMyTurn(1);
|
// getMyHand()->getPlayerArray()[getPlayersTurn()]->setMyTurn(1);
|
||||||
|
|
||||||
|
currentPlayersTurnConstIt = getMyHand()->getRunningPlayerIt( getCurrentPlayersTurnId() );
|
||||||
|
assert(currentPlayersTurnConstIt != getMyHand()->getRunningPlayerList()->end());
|
||||||
(*currentPlayersTurnConstIt)->setMyTurn(true);
|
(*currentPlayersTurnConstIt)->setMyTurn(true);
|
||||||
|
|
||||||
// (*(getCurrentPlayersTurnIt()))->setMyTurn(true);
|
// (*(getCurrentPlayersTurnIt()))->setMyTurn(true);
|
||||||
|
|||||||
@@ -106,151 +106,174 @@ LocalHand::LocalHand(boost::shared_ptr<EngineFactory> f, GuiInterface *g, BoardI
|
|||||||
|
|
||||||
if(DEBUG_MODE) {
|
if(DEBUG_MODE) {
|
||||||
|
|
||||||
// int temp5Array[5];
|
int temp5Array[5];
|
||||||
|
|
||||||
switch(myID) {
|
switch(myID) {
|
||||||
|
|
||||||
case 1: {
|
case 1: {
|
||||||
|
|
||||||
// tempBoardArray[0] = 5;
|
tempBoardArray[0] = 40;
|
||||||
// tempBoardArray[1] = 51;
|
tempBoardArray[1] = 21;
|
||||||
// tempBoardArray[2] = 3;
|
tempBoardArray[2] = 45;
|
||||||
// tempBoardArray[3] = 21;
|
tempBoardArray[3] = 43;
|
||||||
// tempBoardArray[4] = 13;
|
tempBoardArray[4] = 50;
|
||||||
//
|
|
||||||
// myBoard->setMyCards(tempBoardArray);
|
myBoard->setMyCards(tempBoardArray);
|
||||||
//
|
|
||||||
// tempPlayerAndBoardArray[2] = tempBoardArray[0];
|
tempPlayerAndBoardArray[2] = tempBoardArray[0];
|
||||||
// tempPlayerAndBoardArray[3] = tempBoardArray[1];
|
tempPlayerAndBoardArray[3] = tempBoardArray[1];
|
||||||
// tempPlayerAndBoardArray[4] = tempBoardArray[2];
|
tempPlayerAndBoardArray[4] = tempBoardArray[2];
|
||||||
// tempPlayerAndBoardArray[5] = tempBoardArray[3];
|
tempPlayerAndBoardArray[5] = tempBoardArray[3];
|
||||||
// tempPlayerAndBoardArray[6] = tempBoardArray[4];
|
tempPlayerAndBoardArray[6] = tempBoardArray[4];
|
||||||
//
|
|
||||||
// // player0
|
// player0
|
||||||
//
|
it = seatsList->begin();
|
||||||
// tempPlayerArray[0] = 7;
|
|
||||||
// tempPlayerArray[1] = 37;
|
tempPlayerArray[0] = 51;
|
||||||
// tempPlayerAndBoardArray[0] = tempPlayerArray[0];
|
tempPlayerArray[1] = 20;
|
||||||
// tempPlayerAndBoardArray[1] = tempPlayerArray[1];
|
tempPlayerAndBoardArray[0] = tempPlayerArray[0];
|
||||||
//
|
tempPlayerAndBoardArray[1] = tempPlayerArray[1];
|
||||||
// playerArray[0]->setMyCards(tempPlayerArray);
|
|
||||||
// playerArray[0]->setMyCardsValueInt(myCardsValue.cardsValue(tempPlayerAndBoardArray,temp5Array));
|
(*it)->setMyCards(tempPlayerArray);
|
||||||
//
|
(*it)->setMyCardsValueInt(myCardsValue.cardsValue(tempPlayerAndBoardArray,temp5Array));
|
||||||
// playerArray[0]->setMyBestHandPosition(temp5Array);
|
|
||||||
//
|
(*it)->setMyBestHandPosition(temp5Array);
|
||||||
// // player1
|
|
||||||
//
|
// player1
|
||||||
|
it++;
|
||||||
|
|
||||||
// tempPlayerArray[0] = 24;
|
// tempPlayerArray[0] = 24;
|
||||||
// tempPlayerArray[1] = 19;
|
// tempPlayerArray[1] = 19;
|
||||||
// tempPlayerAndBoardArray[0] = tempPlayerArray[0];
|
// tempPlayerAndBoardArray[0] = tempPlayerArray[0];
|
||||||
// tempPlayerAndBoardArray[1] = tempPlayerArray[1];
|
// tempPlayerAndBoardArray[1] = tempPlayerArray[1];
|
||||||
//
|
//
|
||||||
// playerArray[1]->setMyCards(tempPlayerArray);
|
// (*it)->setMyCards(tempPlayerArray);
|
||||||
// playerArray[1]->setMyCardsValueInt(myCardsValue.cardsValue(tempPlayerAndBoardArray,temp5Array));
|
// (*it)->setMyCardsValueInt(myCardsValue.cardsValue(tempPlayerAndBoardArray,temp5Array));
|
||||||
//
|
//
|
||||||
// playerArray[1]->setMyBestHandPosition(temp5Array);
|
// (*it)->setMyBestHandPosition(temp5Array);
|
||||||
|
|
||||||
// player2
|
// player2
|
||||||
|
it++;
|
||||||
|
|
||||||
/* tempPlayerArray[0] = 25;
|
// tempPlayerArray[0] = 25;
|
||||||
tempPlayerArray[1] = 36;
|
// tempPlayerArray[1] = 36;
|
||||||
tempPlayerAndBoardArray[0] = tempPlayerArray[0];
|
|
||||||
tempPlayerAndBoardArray[1] = tempPlayerArray[1];
|
|
||||||
|
|
||||||
playerArray[2]->setMyCards(tempPlayerArray);
|
|
||||||
playerArray[2]->setMyCardsValueInt(myCardsValue.cardsValue(tempPlayerAndBoardArray,temp5Array));
|
|
||||||
|
|
||||||
playerArray[2]->setMyBestHandPosition(temp5Array);*/
|
|
||||||
|
|
||||||
// player3
|
|
||||||
|
|
||||||
// tempPlayerArray[0] = 38;
|
|
||||||
// tempPlayerArray[1] = 22;
|
|
||||||
// tempPlayerAndBoardArray[0] = tempPlayerArray[0];
|
// tempPlayerAndBoardArray[0] = tempPlayerArray[0];
|
||||||
// tempPlayerAndBoardArray[1] = tempPlayerArray[1];
|
// tempPlayerAndBoardArray[1] = tempPlayerArray[1];
|
||||||
//
|
//
|
||||||
// playerArray[3]->setMyCards(tempPlayerArray);
|
// (*it)->setMyCards(tempPlayerArray);
|
||||||
// playerArray[3]->setMyCardsValueInt(myCardsValue.cardsValue(tempPlayerAndBoardArray,temp5Array));
|
// (*it)->setMyCardsValueInt(myCardsValue.cardsValue(tempPlayerAndBoardArray,temp5Array));
|
||||||
//
|
//
|
||||||
// playerArray[3]->setMyBestHandPosition(temp5Array);
|
// (*it)->setMyBestHandPosition(temp5Array);
|
||||||
|
|
||||||
|
// player3
|
||||||
|
it++;
|
||||||
|
|
||||||
|
tempPlayerArray[0] = 12;
|
||||||
|
tempPlayerArray[1] = 46;
|
||||||
|
tempPlayerAndBoardArray[0] = tempPlayerArray[0];
|
||||||
|
tempPlayerAndBoardArray[1] = tempPlayerArray[1];
|
||||||
|
|
||||||
|
(*it)->setMyCards(tempPlayerArray);
|
||||||
|
(*it)->setMyCardsValueInt(myCardsValue.cardsValue(tempPlayerAndBoardArray,temp5Array));
|
||||||
|
|
||||||
|
(*it)->setMyBestHandPosition(temp5Array);
|
||||||
|
|
||||||
// player4
|
// player4
|
||||||
|
it++;
|
||||||
|
|
||||||
// tempPlayerArray[0] = 25;
|
// tempPlayerArray[0] = 25;
|
||||||
// tempPlayerArray[1] = 16;
|
// tempPlayerArray[1] = 16;
|
||||||
// tempPlayerAndBoardArray[0] = tempPlayerArray[0];
|
// tempPlayerAndBoardArray[0] = tempPlayerArray[0];
|
||||||
// tempPlayerAndBoardArray[1] = tempPlayerArray[1];
|
// tempPlayerAndBoardArray[1] = tempPlayerArray[1];
|
||||||
//
|
//
|
||||||
// playerArray[3]->setMyCards(tempPlayerArray);
|
// (*it)->setMyCards(tempPlayerArray);
|
||||||
// playerArray[3]->setMyCardsValueInt(myCardsValue.cardsValue(tempPlayerAndBoardArray,temp5Array));
|
// (*it)->setMyCardsValueInt(myCardsValue.cardsValue(tempPlayerAndBoardArray,temp5Array));
|
||||||
//
|
//
|
||||||
// playerArray[3]->setMyBestHandPosition(temp5Array);
|
// (*it)->setMyBestHandPosition(temp5Array);
|
||||||
|
|
||||||
|
|
||||||
} break;
|
} break;
|
||||||
case 2: {
|
case 2: {
|
||||||
|
|
||||||
// tempBoardArray[0] = 32;
|
tempBoardArray[0] = 41;
|
||||||
// tempBoardArray[1] = 26;
|
tempBoardArray[1] = 51;
|
||||||
// tempBoardArray[2] = 28;
|
tempBoardArray[2] = 6;
|
||||||
// tempBoardArray[3] = 38;
|
tempBoardArray[3] = 26;
|
||||||
// tempBoardArray[4] = 7;
|
tempBoardArray[4] = 11;
|
||||||
//
|
|
||||||
// myBoard->setMyCards(tempBoardArray);
|
|
||||||
//
|
|
||||||
// tempPlayerAndBoardArray[2] = tempBoardArray[0];
|
|
||||||
// tempPlayerAndBoardArray[3] = tempBoardArray[1];
|
|
||||||
// tempPlayerAndBoardArray[4] = tempBoardArray[2];
|
|
||||||
// tempPlayerAndBoardArray[5] = tempBoardArray[3];
|
|
||||||
// tempPlayerAndBoardArray[6] = tempBoardArray[4];
|
|
||||||
//
|
|
||||||
// // player0
|
|
||||||
//
|
|
||||||
// tempPlayerArray[0] = 45;
|
|
||||||
// tempPlayerArray[1] = 35;
|
|
||||||
// tempPlayerAndBoardArray[0] = tempPlayerArray[0];
|
|
||||||
// tempPlayerAndBoardArray[1] = tempPlayerArray[1];
|
|
||||||
//
|
|
||||||
// playerArray[0]->setMyCards(tempPlayerArray);
|
|
||||||
// playerArray[0]->setMyCardsValueInt(myCardsValue.cardsValue(tempPlayerAndBoardArray,temp5Array));
|
|
||||||
//
|
|
||||||
// playerArray[0]->setMyBestHandPosition(temp5Array);
|
|
||||||
//
|
|
||||||
// // player1
|
|
||||||
//
|
|
||||||
// tempPlayerArray[0] = 34;
|
|
||||||
// tempPlayerArray[1] = 39;
|
|
||||||
// tempPlayerAndBoardArray[0] = tempPlayerArray[0];
|
|
||||||
// tempPlayerAndBoardArray[1] = tempPlayerArray[1];
|
|
||||||
//
|
|
||||||
// playerArray[1]->setMyCards(tempPlayerArray);
|
|
||||||
// playerArray[1]->setMyCardsValueInt(myCardsValue.cardsValue(tempPlayerAndBoardArray,temp5Array));
|
|
||||||
//
|
|
||||||
// playerArray[1]->setMyBestHandPosition(temp5Array);
|
|
||||||
|
|
||||||
// // player2
|
myBoard->setMyCards(tempBoardArray);
|
||||||
//
|
|
||||||
// tempPlayerArray[0] = 7;
|
tempPlayerAndBoardArray[2] = tempBoardArray[0];
|
||||||
// tempPlayerArray[1] = 17;
|
tempPlayerAndBoardArray[3] = tempBoardArray[1];
|
||||||
|
tempPlayerAndBoardArray[4] = tempBoardArray[2];
|
||||||
|
tempPlayerAndBoardArray[5] = tempBoardArray[3];
|
||||||
|
tempPlayerAndBoardArray[6] = tempBoardArray[4];
|
||||||
|
|
||||||
|
// player0
|
||||||
|
it = seatsList->begin();
|
||||||
|
|
||||||
|
tempPlayerArray[0] = 9;
|
||||||
|
tempPlayerArray[1] = 5;
|
||||||
|
tempPlayerAndBoardArray[0] = tempPlayerArray[0];
|
||||||
|
tempPlayerAndBoardArray[1] = tempPlayerArray[1];
|
||||||
|
|
||||||
|
(*it)->setMyCards(tempPlayerArray);
|
||||||
|
(*it)->setMyCardsValueInt(myCardsValue.cardsValue(tempPlayerAndBoardArray,temp5Array));
|
||||||
|
|
||||||
|
(*it)->setMyBestHandPosition(temp5Array);
|
||||||
|
|
||||||
|
// player1
|
||||||
|
it++;
|
||||||
|
|
||||||
|
tempPlayerArray[0] = 15;
|
||||||
|
tempPlayerArray[1] = 10;
|
||||||
|
tempPlayerAndBoardArray[0] = tempPlayerArray[0];
|
||||||
|
tempPlayerAndBoardArray[1] = tempPlayerArray[1];
|
||||||
|
|
||||||
|
(*it)->setMyCards(tempPlayerArray);
|
||||||
|
(*it)->setMyCardsValueInt(myCardsValue.cardsValue(tempPlayerAndBoardArray,temp5Array));
|
||||||
|
|
||||||
|
(*it)->setMyBestHandPosition(temp5Array);
|
||||||
|
|
||||||
|
// player2
|
||||||
|
it++;
|
||||||
|
|
||||||
|
tempPlayerArray[0] = 33;
|
||||||
|
tempPlayerArray[1] = 27;
|
||||||
|
tempPlayerAndBoardArray[0] = tempPlayerArray[0];
|
||||||
|
tempPlayerAndBoardArray[1] = tempPlayerArray[1];
|
||||||
|
|
||||||
|
(*it)->setMyCards(tempPlayerArray);
|
||||||
|
(*it)->setMyCardsValueInt(myCardsValue.cardsValue(tempPlayerAndBoardArray,temp5Array));
|
||||||
|
|
||||||
|
(*it)->setMyBestHandPosition(temp5Array);
|
||||||
|
|
||||||
|
// player3
|
||||||
|
it++;
|
||||||
|
|
||||||
|
// tempPlayerArray[0] = 38;
|
||||||
|
// tempPlayerArray[1] = 22;
|
||||||
// tempPlayerAndBoardArray[0] = tempPlayerArray[0];
|
// tempPlayerAndBoardArray[0] = tempPlayerArray[0];
|
||||||
// tempPlayerAndBoardArray[1] = tempPlayerArray[1];
|
// tempPlayerAndBoardArray[1] = tempPlayerArray[1];
|
||||||
//
|
//
|
||||||
// playerArray[2]->setMyCards(tempPlayerArray);
|
// (*it)->setMyCards(tempPlayerArray);
|
||||||
// playerArray[2]->setMyCardsValueInt(myCardsValue.cardsValue(tempPlayerAndBoardArray,temp5Array));
|
// (*it)->setMyCardsValueInt(myCardsValue.cardsValue(tempPlayerAndBoardArray,temp5Array));
|
||||||
//
|
//
|
||||||
// playerArray[2]->setMyBestHandPosition(temp5Array);
|
// (*it)->setMyBestHandPosition(temp5Array);
|
||||||
//
|
|
||||||
// // player3
|
// player4
|
||||||
//
|
it++;
|
||||||
// tempPlayerArray[0] = 26;
|
|
||||||
// tempPlayerArray[1] = 28;
|
// tempPlayerArray[0] = 25;
|
||||||
|
// tempPlayerArray[1] = 16;
|
||||||
// tempPlayerAndBoardArray[0] = tempPlayerArray[0];
|
// tempPlayerAndBoardArray[0] = tempPlayerArray[0];
|
||||||
// tempPlayerAndBoardArray[1] = tempPlayerArray[1];
|
// tempPlayerAndBoardArray[1] = tempPlayerArray[1];
|
||||||
//
|
//
|
||||||
// playerArray[3]->setMyCards(tempPlayerArray);
|
// (*it)->setMyCards(tempPlayerArray);
|
||||||
// playerArray[3]->setMyCardsValueInt(myCardsValue.cardsValue(tempPlayerAndBoardArray,temp5Array));
|
// (*it)->setMyCardsValueInt(myCardsValue.cardsValue(tempPlayerAndBoardArray,temp5Array));
|
||||||
//
|
//
|
||||||
// playerArray[3]->setMyBestHandPosition(temp5Array);
|
// (*it)->setMyBestHandPosition(temp5Array);
|
||||||
|
|
||||||
|
|
||||||
} break;
|
} break;
|
||||||
default: {}
|
default: {}
|
||||||
|
|||||||
@@ -854,25 +854,39 @@ LocalPlayer::LocalPlayer(ConfigFile *c, BoardInterface *b, int id, unsigned uniq
|
|||||||
// !!!!!!!!!!!!!!!!!!!!!!!! testing !!!!!!!!!!!!!!!!!!!!!!!!
|
// !!!!!!!!!!!!!!!!!!!!!!!! testing !!!!!!!!!!!!!!!!!!!!!!!!
|
||||||
if(DEBUG_MODE) {
|
if(DEBUG_MODE) {
|
||||||
|
|
||||||
if(myID==0) {
|
switch(myUniqueID) {
|
||||||
// myActiveStatus=0;
|
|
||||||
// myCash=14800;
|
case 0: {
|
||||||
|
// myActiveStatus=0;
|
||||||
|
myCash=4600;
|
||||||
|
} break;
|
||||||
|
case 1: {
|
||||||
|
// myActiveStatus=0;
|
||||||
|
myCash=4400;
|
||||||
|
} break;
|
||||||
|
case 2: {
|
||||||
|
// myActiveStatus=0;
|
||||||
|
myCash=800;
|
||||||
|
} break;
|
||||||
|
case 3: {
|
||||||
|
// myActiveStatus=0;
|
||||||
|
myCash=4000;
|
||||||
|
} break;
|
||||||
|
case 4: {
|
||||||
|
// myActiveStatus=0;
|
||||||
|
myCash=4200;
|
||||||
|
} break;
|
||||||
|
case 5: {
|
||||||
|
// myActiveStatus=0;
|
||||||
|
// myCash=14800;
|
||||||
|
} break;
|
||||||
|
case 6: {
|
||||||
|
// myActiveStatus=0;
|
||||||
|
// myCash=14800;
|
||||||
|
} break;
|
||||||
|
default: {
|
||||||
}
|
}
|
||||||
|
|
||||||
if(myID==1) {
|
|
||||||
// myCash=400;
|
|
||||||
}
|
|
||||||
if(myID==2) {
|
|
||||||
myCash=50;
|
|
||||||
}
|
|
||||||
if(myID==3) {
|
|
||||||
// myCash=5250;
|
|
||||||
}
|
|
||||||
if(myID==4) {
|
|
||||||
// myCash=5100;
|
|
||||||
}
|
|
||||||
if(myID==5) {
|
|
||||||
// myCash=4500;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -1187,14 +1201,15 @@ void LocalPlayer::preflopEngine() {
|
|||||||
// cout << myID << ": " << myOdds << " - " << myNiveau[0] << " " << myNiveau[2] << " - " << "Bluff: " << sBluffStatus << endl;
|
// cout << myID << ": " << myOdds << " - " << myNiveau[0] << " " << myNiveau[2] << " - " << "Bluff: " << sBluffStatus << endl;
|
||||||
|
|
||||||
if(DEBUG_MODE) {
|
if(DEBUG_MODE) {
|
||||||
switch(myID) {
|
switch(myUniqueID) {
|
||||||
case 0: {}
|
case 0: {}
|
||||||
break;
|
break;
|
||||||
case 1: {
|
case 1: {
|
||||||
|
// player 1
|
||||||
|
|
||||||
switch(actualHand->getMyID()) {
|
switch(actualHand->getMyID()) {
|
||||||
case 1: {
|
case 1: {
|
||||||
// myAction = PLAYER_ACTION_CALL;
|
myAction = PLAYER_ACTION_FOLD;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 2: {
|
case 2: {
|
||||||
@@ -1209,10 +1224,11 @@ void LocalPlayer::preflopEngine() {
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 2: {
|
case 2: {
|
||||||
|
// player 2
|
||||||
|
|
||||||
switch(actualHand->getMyID()) {
|
switch(actualHand->getMyID()) {
|
||||||
case 1: {
|
case 1: {
|
||||||
// myAction = PLAYER_ACTION_FOLD;
|
myAction = PLAYER_ACTION_FOLD;
|
||||||
// raise = 20;
|
// raise = 20;
|
||||||
// if(mySet >= 40) {
|
// if(mySet >= 40) {
|
||||||
// myAction = PLAYER_ACTION_CALL;
|
// myAction = PLAYER_ACTION_CALL;
|
||||||
@@ -1234,11 +1250,49 @@ void LocalPlayer::preflopEngine() {
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 3: {
|
case 3: {
|
||||||
|
switch(actualHand->getMyID()) {
|
||||||
|
case 1: {
|
||||||
|
myAction = PLAYER_ACTION_CALL;
|
||||||
|
// raise = 20;
|
||||||
|
// if(mySet >= 40) {
|
||||||
// myAction = PLAYER_ACTION_CALL;
|
// myAction = PLAYER_ACTION_CALL;
|
||||||
|
// }
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case 2: {
|
||||||
|
// myAction = PLAYER_ACTION_RAISE;
|
||||||
|
// raise = 50;
|
||||||
|
// if(mySet >= 70) {
|
||||||
|
// myAction = PLAYER_ACTION_CALL;
|
||||||
|
// }
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
default: {
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 4: {
|
case 4: {
|
||||||
|
switch(actualHand->getMyID()) {
|
||||||
|
case 1: {
|
||||||
|
myAction = PLAYER_ACTION_CALL;
|
||||||
|
// raise = 20;
|
||||||
|
if(mySet > 0) {
|
||||||
|
myAction = PLAYER_ACTION_FOLD;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case 2: {
|
||||||
|
myAction = PLAYER_ACTION_FOLD;
|
||||||
|
// raise = 50;
|
||||||
|
// if(mySet >= 70) {
|
||||||
// myAction = PLAYER_ACTION_CALL;
|
// myAction = PLAYER_ACTION_CALL;
|
||||||
|
// }
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
default: {
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 5: {
|
case 5: {
|
||||||
@@ -1508,7 +1562,7 @@ void LocalPlayer::flopEngine() {
|
|||||||
|
|
||||||
|
|
||||||
if(DEBUG_MODE) {
|
if(DEBUG_MODE) {
|
||||||
switch(myID) {
|
switch(myUniqueID) {
|
||||||
case 0: {
|
case 0: {
|
||||||
} break;
|
} break;
|
||||||
case 1: {
|
case 1: {
|
||||||
@@ -2100,7 +2154,7 @@ void LocalPlayer::turnEngine() {
|
|||||||
|
|
||||||
if(DEBUG_MODE) {
|
if(DEBUG_MODE) {
|
||||||
|
|
||||||
switch(myID) {
|
switch(myUniqueID) {
|
||||||
|
|
||||||
case 0: {
|
case 0: {
|
||||||
}
|
}
|
||||||
@@ -2438,7 +2492,7 @@ void LocalPlayer::riverEngine() {
|
|||||||
|
|
||||||
|
|
||||||
if(DEBUG_MODE) {
|
if(DEBUG_MODE) {
|
||||||
switch(myID) {
|
switch(myUniqueID) {
|
||||||
case 0: {
|
case 0: {
|
||||||
} break;
|
} break;
|
||||||
case 1: {
|
case 1: {
|
||||||
|
|||||||
@@ -1025,7 +1025,7 @@ QStringList Log::translateCardsValueCode(int cardsValueCode) {
|
|||||||
break;
|
break;
|
||||||
// Pair
|
// Pair
|
||||||
case 1: {
|
case 1: {
|
||||||
cardString << "Pair, ";
|
cardString << "One Pair, ";
|
||||||
// Pair
|
// Pair
|
||||||
switch(secondPart) {
|
switch(secondPart) {
|
||||||
case 12: cardString << "Aces";
|
case 12: cardString << "Aces";
|
||||||
@@ -1150,7 +1150,7 @@ QStringList Log::translateCardsValueCode(int cardsValueCode) {
|
|||||||
break;
|
break;
|
||||||
// Highest Card
|
// Highest Card
|
||||||
case 0: {
|
case 0: {
|
||||||
cardString << "Highest Card, ";
|
cardString << "High Card, ";
|
||||||
// Kicker 1
|
// Kicker 1
|
||||||
switch(secondPart) {
|
switch(secondPart) {
|
||||||
case 12: cardString << "Ace";
|
case 12: cardString << "Ace";
|
||||||
|
|||||||
@@ -738,7 +738,7 @@ void mainWindowImpl::startNewLocalGame(newGameDialogImpl *v) {
|
|||||||
startData.numberOfPlayers = gameData.maxNumberOfPlayers;
|
startData.numberOfPlayers = gameData.maxNumberOfPlayers;
|
||||||
Tools::getRandNumber(0, startData.numberOfPlayers-1, 1, &tmpDealerPos, 0);
|
Tools::getRandNumber(0, startData.numberOfPlayers-1, 1, &tmpDealerPos, 0);
|
||||||
if(DEBUG_MODE) {
|
if(DEBUG_MODE) {
|
||||||
tmpDealerPos = 1;
|
tmpDealerPos = 4;
|
||||||
}
|
}
|
||||||
startData.startDealerPlayerId = static_cast<unsigned>(tmpDealerPos);
|
startData.startDealerPlayerId = static_cast<unsigned>(tmpDealerPos);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user