This commit is contained in:
doitux committed 2009-04-12 18:59:35 +00:00
1 parent 81bd7e7151
commit eb38dd7640
5 files changed
+31 -19

No files matched your search

+10 -10
View File
@@ -104,11 +104,11 @@ LocalHand::LocalHand(boost::shared_ptr<EngineFactory> f, GuiInterface *g, BoardI
case 1: {
tempBoardArray[0] = 3;
tempBoardArray[1] = 17;
tempBoardArray[2] = 18;
tempBoardArray[3] = 32;
tempBoardArray[4] = 33;
tempBoardArray[0] = 48;
tempBoardArray[1] = 10;
tempBoardArray[2] = 11;
tempBoardArray[3] = 1;
tempBoardArray[4] = 26;
myBoard->setMyCards(tempBoardArray);
@@ -121,8 +121,8 @@ LocalHand::LocalHand(boost::shared_ptr<EngineFactory> f, GuiInterface *g, BoardI
// player0
it = seatsList->begin();
tempPlayerArray[0] = 11;
tempPlayerArray[1] = 12;
tempPlayerArray[0] = 24;
tempPlayerArray[1] = 45;
tempPlayerAndBoardArray[0] = tempPlayerArray[0];
tempPlayerAndBoardArray[1] = tempPlayerArray[1];
@@ -134,15 +134,15 @@ LocalHand::LocalHand(boost::shared_ptr<EngineFactory> f, GuiInterface *g, BoardI
// player1
it++;
/* tempPlayerArray[0] = 12;
tempPlayerArray[1] = 48;
tempPlayerArray[0] = 38;
tempPlayerArray[1] = 27;
tempPlayerAndBoardArray[0] = tempPlayerArray[0];
tempPlayerAndBoardArray[1] = tempPlayerArray[1];
(*it)->setMyCards(tempPlayerArray);
(*it)->setMyCardsValueInt(myCardsValue.cardsValue(tempPlayerAndBoardArray,temp5Array));
(*it)->setMyBestHandPosition(temp5Array);*/
(*it)->setMyBestHandPosition(temp5Array);
// player2
it++;
+18 -6
View File
@@ -859,10 +859,10 @@ LocalPlayer::LocalPlayer(ConfigFile *c, BoardInterface *b, int id, unsigned uniq
switch(myUniqueID) {
case 0: {
myCash=2000;
myCash=23110;
} break;
case 1: {
myCash=0;
myCash=1320;
} break;
case 2: {
myCash=0;
@@ -877,8 +877,18 @@ LocalPlayer::LocalPlayer(ConfigFile *c, BoardInterface *b, int id, unsigned uniq
myCash=0;
} break;
case 6: {
myCash=1500;
myCash=0;
} break;
case 7: {
myCash=0;
} break;
case 8: {
myCash=0;
} break;
case 9: {
myCash=0;
} break;
default: {
}
@@ -1277,7 +1287,7 @@ void LocalPlayer::preflopEngine() {
switch(currentHand->getMyID()) {
case 1: {
myAction = PLAYER_ACTION_CALL;
myAction = PLAYER_ACTION_CHECK;
// raise = 3000;
}
break;
@@ -1666,7 +1676,8 @@ void LocalPlayer::flopEngine() {
switch(currentHand->getMyID()) {
case 1: {
myAction = PLAYER_ACTION_CHECK;
myAction = PLAYER_ACTION_BET;
bet = 640;
// if(currentHand->getCurrentBeRo()->getHighestSet() > 0) {
// myAction = PLAYER_ACTION_CALL;
// }
@@ -2331,7 +2342,8 @@ void LocalPlayer::turnEngine() {
switch(currentHand->getMyID()) {
case 1: {
myAction = PLAYER_ACTION_FOLD;
myAction = PLAYER_ACTION_RAISE;
raise = 40;
// if(currentHand->getCurrentBeRo()->getHighestSet() > 100) {
// myAction = PLAYER_ACTION_FOLD;
// }