reorgranize debug_mode

This commit is contained in:
floty committed 2014-03-23 23:11:16 +01:00
1 parent b93525607e
commit 1f0e256fe6
7 files changed
+166 -140

No files matched your search

+12 -2
View File
@@ -73,8 +73,13 @@ LocalHand::LocalHand(boost::shared_ptr<EngineFactory> f, GuiInterface *g, boost:
int bestHandPos[5];
int sBluff;
// board cards
for(i=0; i<5; i++) tempBoardArray[i] = cardsArray[i];
if(DEBUG_MODE) myLog->debugMode_getBoardCards(tempBoardArray,myID);
// debug mode
myLog->debugMode_getBoardCards(tempBoardArray,myID);
// prepare whole player hand
for(i=0; i<5; i++) tempPlayerAndBoardArray[i+2] = tempBoardArray[i];
k = 0;
@@ -83,8 +88,13 @@ LocalHand::LocalHand(boost::shared_ptr<EngineFactory> f, GuiInterface *g, boost:
(*it)->getMyBestHandPosition(bestHandPos);
// hole cards
for(j=0; j<2; j++) tempPlayerArray[j] = cardsArray[2*k+j+5];
if(DEBUG_MODE) myLog->debugMode_getPlayerCards(tempPlayerArray,myID,k);
// debug mode
myLog->debugMode_getPlayerCards(tempPlayerArray,myID,k);
// complete whole player hand
for(j=0; j<2; j++) tempPlayerAndBoardArray[j] = tempPlayerArray[j];
(*it)->setMyCards(tempPlayerArray);
+8 -4
View File
@@ -1263,7 +1263,8 @@ void LocalPlayer::preflopEngine()
// cout << myID << ": " << myOdds << " - " << myNiveau[0] << " " << myNiveau[2] << " - " << "Bluff: " << sBluffStatus << endl;
if(DEBUG_MODE) currentHand->getLog()->debugMode_getPlayerAction(GAME_STATE_PREFLOP, currentHand->getMyID(), myUniqueID, &myAction, &bet, &raise, mySet);
// debug mode
currentHand->getLog()->debugMode_getPlayerAction(&myAction, &bet, &raise, GAME_STATE_PREFLOP, currentHand->getMyID(), myUniqueID, mySet);
evaluation(bet, raise);
}
@@ -1524,7 +1525,8 @@ void LocalPlayer::flopEngine()
}
if(DEBUG_MODE) currentHand->getLog()->debugMode_getPlayerAction(GAME_STATE_FLOP, currentHand->getMyID(), myUniqueID, &myAction, &bet, &raise, mySet);
// debug mode
currentHand->getLog()->debugMode_getPlayerAction(&myAction, &bet, &raise, GAME_STATE_FLOP, currentHand->getMyID(), myUniqueID, mySet);
evaluation(bet, raise);
@@ -1798,7 +1800,8 @@ void LocalPlayer::turnEngine()
}
if(DEBUG_MODE) currentHand->getLog()->debugMode_getPlayerAction(GAME_STATE_TURN, currentHand->getMyID(), myUniqueID, &myAction, &bet, &raise, mySet);
// debug mode
currentHand->getLog()->debugMode_getPlayerAction(&myAction, &bet, &raise, GAME_STATE_TURN, currentHand->getMyID(), myUniqueID, mySet);
evaluation(bet, raise);
@@ -2058,7 +2061,8 @@ void LocalPlayer::riverEngine()
}
if(DEBUG_MODE) currentHand->getLog()->debugMode_getPlayerAction(GAME_STATE_RIVER, currentHand->getMyID(), myUniqueID, &myAction, &bet, &raise, mySet);
// debug mode
currentHand->getLog()->debugMode_getPlayerAction(&myAction, &bet, &raise, GAME_STATE_RIVER, currentHand->getMyID(), myUniqueID, mySet);
evaluation(bet, raise);