diff --git a/src/engine/local_engine/localhand.cpp b/src/engine/local_engine/localhand.cpp index 6058284f..c93dde3a 100755 --- a/src/engine/local_engine/localhand.cpp +++ b/src/engine/local_engine/localhand.cpp @@ -31,7 +31,6 @@ LocalHand::LocalHand(boost::shared_ptr f, GuiInterface *g, BoardI cardsShown(false), bettingRoundsPlayed(0) { - int i, j, k; CardsValue myCardsValue; @@ -100,15 +99,15 @@ LocalHand::LocalHand(boost::shared_ptr f, GuiInterface *g, BoardI // !!!!!!!!!!!!!!!!!!!!!!!!!!!!! testing !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! // - if(DEBUG_MODE) { + if(DEBUG_MODE) { int temp5Array[5]; - tempBoardArray[0] = 28; - tempBoardArray[1] = 45; - tempBoardArray[2] = 33; - tempBoardArray[3] = 4; - tempBoardArray[4] = 49; + tempBoardArray[0] = 25; + tempBoardArray[1] = 37; + tempBoardArray[2] = 20; + tempBoardArray[3] = 49; + tempBoardArray[4] = 39; myBoard->setMyCards(tempBoardArray); @@ -117,9 +116,11 @@ LocalHand::LocalHand(boost::shared_ptr f, GuiInterface *g, BoardI tempPlayerAndBoardArray[4] = tempBoardArray[2]; tempPlayerAndBoardArray[5] = tempBoardArray[3]; tempPlayerAndBoardArray[6] = tempBoardArray[4]; + + // player0 - tempPlayerArray[0] = 47; - tempPlayerArray[1] = 12; + tempPlayerArray[0] = 0; + tempPlayerArray[1] = 7; tempPlayerAndBoardArray[0] = tempPlayerArray[0]; tempPlayerAndBoardArray[1] = tempPlayerArray[1]; @@ -133,8 +134,10 @@ LocalHand::LocalHand(boost::shared_ptr f, GuiInterface *g, BoardI // } // cout << endl; - tempPlayerArray[0] = 31; - tempPlayerArray[1] = 18; + // player1 + + tempPlayerArray[0] = 51; + tempPlayerArray[1] = 24; tempPlayerAndBoardArray[0] = tempPlayerArray[0]; tempPlayerAndBoardArray[1] = tempPlayerArray[1]; @@ -143,8 +146,10 @@ LocalHand::LocalHand(boost::shared_ptr f, GuiInterface *g, BoardI playerArray[1]->setMyBestHandPosition(temp5Array); - tempPlayerArray[0] = 24; - tempPlayerArray[1] = 48; + // player2 + + tempPlayerArray[0] = 13; + tempPlayerArray[1] = 43; tempPlayerAndBoardArray[0] = tempPlayerArray[0]; tempPlayerAndBoardArray[1] = tempPlayerArray[1]; @@ -168,7 +173,7 @@ LocalHand::LocalHand(boost::shared_ptr f, GuiInterface *g, BoardI // } - dealerPosition = 0; + dealerPosition = 2; } diff --git a/src/engine/local_engine/localplayer.cpp b/src/engine/local_engine/localplayer.cpp index de2126af..ce0f1626 100755 --- a/src/engine/local_engine/localplayer.cpp +++ b/src/engine/local_engine/localplayer.cpp @@ -36,17 +36,17 @@ LocalPlayer::LocalPlayer(ConfigFile *c, BoardInterface *b, int id, unsigned uniq if(myID==0) { // myActiveStatus=0; - myCash=570; +// myCash=570; } if(myID==1) { - myCash=2730; +// myCash=2730; } if(myID==2) { - myCash=5970; +// myCash=5970; } if(myID==3) { - myCash=2730; +// myCash=2730; } } @@ -343,9 +343,21 @@ void LocalPlayer::preflopEngine() { switch(myID) { case 0: {} break; - case 1: { myAction = PLAYER_ACTION_FOLD; } + case 1: { + + switch(actualHand->getMyID()) { + case 2: { + myAction = PLAYER_ACTION_RAISE; + raise = 120; + } + break; + default: { + } + } + + } break; - case 2: { myAction = PLAYER_ACTION_CALL; } + case 2: { myAction = PLAYER_ACTION_FOLD; } break; case 3: { myAction = PLAYER_ACTION_FOLD; } break;