debugging
This commit is contained in:
@@ -101,13 +101,15 @@ LocalHand::LocalHand(boost::shared_ptr<EngineFactory> f, GuiInterface *g, BoardI
|
|||||||
|
|
||||||
if(DEBUG_MODE) {
|
if(DEBUG_MODE) {
|
||||||
|
|
||||||
|
if(myID==1) {
|
||||||
|
|
||||||
int temp5Array[5];
|
int temp5Array[5];
|
||||||
|
|
||||||
tempBoardArray[0] = 25;
|
tempBoardArray[0] = 38;
|
||||||
tempBoardArray[1] = 37;
|
tempBoardArray[1] = 19;
|
||||||
tempBoardArray[2] = 20;
|
tempBoardArray[2] = 21;
|
||||||
tempBoardArray[3] = 49;
|
tempBoardArray[3] = 11;
|
||||||
tempBoardArray[4] = 39;
|
tempBoardArray[4] = 45;
|
||||||
|
|
||||||
myBoard->setMyCards(tempBoardArray);
|
myBoard->setMyCards(tempBoardArray);
|
||||||
|
|
||||||
@@ -119,8 +121,8 @@ LocalHand::LocalHand(boost::shared_ptr<EngineFactory> f, GuiInterface *g, BoardI
|
|||||||
|
|
||||||
// player0
|
// player0
|
||||||
|
|
||||||
tempPlayerArray[0] = 0;
|
tempPlayerArray[0] = 9;
|
||||||
tempPlayerArray[1] = 7;
|
tempPlayerArray[1] = 14;
|
||||||
tempPlayerAndBoardArray[0] = tempPlayerArray[0];
|
tempPlayerAndBoardArray[0] = tempPlayerArray[0];
|
||||||
tempPlayerAndBoardArray[1] = tempPlayerArray[1];
|
tempPlayerAndBoardArray[1] = tempPlayerArray[1];
|
||||||
|
|
||||||
@@ -136,8 +138,8 @@ LocalHand::LocalHand(boost::shared_ptr<EngineFactory> f, GuiInterface *g, BoardI
|
|||||||
|
|
||||||
// player1
|
// player1
|
||||||
|
|
||||||
tempPlayerArray[0] = 51;
|
tempPlayerArray[0] = 44;
|
||||||
tempPlayerArray[1] = 24;
|
tempPlayerArray[1] = 27;
|
||||||
tempPlayerAndBoardArray[0] = tempPlayerArray[0];
|
tempPlayerAndBoardArray[0] = tempPlayerArray[0];
|
||||||
tempPlayerAndBoardArray[1] = tempPlayerArray[1];
|
tempPlayerAndBoardArray[1] = tempPlayerArray[1];
|
||||||
|
|
||||||
@@ -148,8 +150,8 @@ LocalHand::LocalHand(boost::shared_ptr<EngineFactory> f, GuiInterface *g, BoardI
|
|||||||
|
|
||||||
// player2
|
// player2
|
||||||
|
|
||||||
tempPlayerArray[0] = 13;
|
tempPlayerArray[0] = 51;
|
||||||
tempPlayerArray[1] = 43;
|
tempPlayerArray[1] = 22;
|
||||||
tempPlayerAndBoardArray[0] = tempPlayerArray[0];
|
tempPlayerAndBoardArray[0] = tempPlayerArray[0];
|
||||||
tempPlayerAndBoardArray[1] = tempPlayerArray[1];
|
tempPlayerAndBoardArray[1] = tempPlayerArray[1];
|
||||||
|
|
||||||
@@ -158,15 +160,15 @@ LocalHand::LocalHand(boost::shared_ptr<EngineFactory> f, GuiInterface *g, BoardI
|
|||||||
|
|
||||||
playerArray[2]->setMyBestHandPosition(temp5Array);
|
playerArray[2]->setMyBestHandPosition(temp5Array);
|
||||||
|
|
||||||
tempPlayerArray[0] = 19;
|
// tempPlayerArray[0] = 19;
|
||||||
tempPlayerArray[1] = 51;
|
// tempPlayerArray[1] = 51;
|
||||||
tempPlayerAndBoardArray[0] = tempPlayerArray[0];
|
// tempPlayerAndBoardArray[0] = tempPlayerArray[0];
|
||||||
tempPlayerAndBoardArray[1] = tempPlayerArray[1];
|
// tempPlayerAndBoardArray[1] = tempPlayerArray[1];
|
||||||
|
|
||||||
playerArray[3]->setMyCards(tempPlayerArray);
|
// playerArray[3]->setMyCards(tempPlayerArray);
|
||||||
playerArray[3]->setMyCardsValueInt(myCardsValue.cardsValue(tempPlayerAndBoardArray,temp5Array));
|
// playerArray[3]->setMyCardsValueInt(myCardsValue.cardsValue(tempPlayerAndBoardArray,temp5Array));
|
||||||
|
//
|
||||||
playerArray[3]->setMyBestHandPosition(temp5Array);
|
// playerArray[3]->setMyBestHandPosition(temp5Array);
|
||||||
|
|
||||||
// for(i=0; i<4; i++) {
|
// for(i=0; i<4; i++) {
|
||||||
// cout << i << ": " << playerArray[i]->getMyCardsValueInt() << endl;
|
// cout << i << ": " << playerArray[i]->getMyCardsValueInt() << endl;
|
||||||
@@ -177,6 +179,8 @@ LocalHand::LocalHand(boost::shared_ptr<EngineFactory> f, GuiInterface *g, BoardI
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
// ----------------------------------------
|
// ----------------------------------------
|
||||||
|
|
||||||
// Dealer, SB, BB bestimmen
|
// Dealer, SB, BB bestimmen
|
||||||
|
|||||||
@@ -347,12 +347,12 @@ void LocalPlayer::preflopEngine() {
|
|||||||
|
|
||||||
switch(actualHand->getMyID()) {
|
switch(actualHand->getMyID()) {
|
||||||
case 1: {
|
case 1: {
|
||||||
myAction = PLAYER_ACTION_CALL;
|
myAction = PLAYER_ACTION_FOLD;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 2: {
|
case 2: {
|
||||||
myAction = PLAYER_ACTION_CALL;
|
myAction = PLAYER_ACTION_RAISE;
|
||||||
// raise = 120;
|
raise = 70;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
default: {
|
default: {
|
||||||
@@ -365,12 +365,19 @@ void LocalPlayer::preflopEngine() {
|
|||||||
|
|
||||||
switch(actualHand->getMyID()) {
|
switch(actualHand->getMyID()) {
|
||||||
case 1: {
|
case 1: {
|
||||||
myAction = PLAYER_ACTION_FOLD;
|
myAction = PLAYER_ACTION_RAISE;
|
||||||
|
raise = 20;
|
||||||
|
if(mySet >= 40) {
|
||||||
|
myAction = PLAYER_ACTION_CALL;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 2: {
|
case 2: {
|
||||||
myAction = PLAYER_ACTION_RAISE;
|
myAction = PLAYER_ACTION_RAISE;
|
||||||
raise = 120;
|
raise = 50;
|
||||||
|
if(mySet >= 70) {
|
||||||
|
myAction = PLAYER_ACTION_CALL;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
default: {
|
default: {
|
||||||
|
|||||||
Reference in New Issue
Block a user