refactoring Bugfix
This commit is contained in:
@@ -100,72 +100,78 @@ LocalHand::LocalHand(boost::shared_ptr<EngineFactory> f, GuiInterface *g, BoardI
|
||||
|
||||
// !!!!!!!!!!!!!!!!!!!!!!!!!!!!! testing !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! //
|
||||
|
||||
// // int temp5Array[5];
|
||||
// //
|
||||
// // tempBoardArray[0] = 8;
|
||||
// // tempBoardArray[1] = 9;
|
||||
// // tempBoardArray[2] = 10;
|
||||
// // tempBoardArray[3] = 11;
|
||||
// // tempBoardArray[4] = 13;
|
||||
// //
|
||||
// // myBoard->setMyCards(tempBoardArray);
|
||||
// //
|
||||
// // tempPlayerAndBoardArray[2] = tempBoardArray[0];
|
||||
// // tempPlayerAndBoardArray[3] = tempBoardArray[1];
|
||||
// // tempPlayerAndBoardArray[4] = tempBoardArray[2];
|
||||
// // tempPlayerAndBoardArray[5] = tempBoardArray[3];
|
||||
// // tempPlayerAndBoardArray[6] = tempBoardArray[4];
|
||||
// //
|
||||
// // tempPlayerArray[0] = 13;
|
||||
// // tempPlayerArray[1] = 25;
|
||||
// // tempPlayerAndBoardArray[0] = tempPlayerArray[0];
|
||||
// // tempPlayerAndBoardArray[1] = tempPlayerArray[1];
|
||||
// //
|
||||
// // playerArray[0]->setMyCards(tempPlayerArray);
|
||||
// // playerArray[0]->setMyCardsValueInt(myCardsValue.cardsValue(tempPlayerAndBoardArray,temp5Array));
|
||||
// //
|
||||
// // playerArray[0]->setMyBestHandPosition(temp5Array);
|
||||
// //
|
||||
// // // for(i=0; i<5; i++) {
|
||||
// // // cout << temp5Array[i] << " ";
|
||||
// // // }
|
||||
// // // cout << endl;
|
||||
// //
|
||||
// // tempPlayerArray[0] = 31;
|
||||
// // tempPlayerArray[1] = 18;
|
||||
// // tempPlayerAndBoardArray[0] = tempPlayerArray[0];
|
||||
// // tempPlayerAndBoardArray[1] = tempPlayerArray[1];
|
||||
// //
|
||||
// // playerArray[1]->setMyCards(tempPlayerArray);
|
||||
// // playerArray[1]->setMyCardsValueInt(myCardsValue.cardsValue(tempPlayerAndBoardArray,temp5Array));
|
||||
// //
|
||||
// // playerArray[1]->setMyBestHandPosition(temp5Array);
|
||||
// //
|
||||
// // tempPlayerArray[0] = 20;
|
||||
// // tempPlayerArray[1] = 38;
|
||||
// // tempPlayerAndBoardArray[0] = tempPlayerArray[0];
|
||||
// // tempPlayerAndBoardArray[1] = tempPlayerArray[1];
|
||||
// //
|
||||
// // playerArray[2]->setMyCards(tempPlayerArray);
|
||||
// // playerArray[2]->setMyCardsValueInt(myCardsValue.cardsValue(tempPlayerAndBoardArray,temp5Array));
|
||||
// //
|
||||
// // playerArray[2]->setMyBestHandPosition(temp5Array);
|
||||
// //
|
||||
// // tempPlayerArray[0] = 19;
|
||||
// // tempPlayerArray[1] = 51;
|
||||
// // tempPlayerAndBoardArray[0] = tempPlayerArray[0];
|
||||
// // tempPlayerAndBoardArray[1] = tempPlayerArray[1];
|
||||
// //
|
||||
// // playerArray[3]->setMyCards(tempPlayerArray);
|
||||
// // playerArray[3]->setMyCardsValueInt(myCardsValue.cardsValue(tempPlayerAndBoardArray,temp5Array));
|
||||
// //
|
||||
// // playerArray[3]->setMyBestHandPosition(temp5Array);
|
||||
// //
|
||||
// // // for(i=0; i<4; i++) {
|
||||
// // // cout << i << ": " << playerArray[i]->getMyCardsValueInt() << endl;
|
||||
// // // }
|
||||
if(DEBUG_MODE) {
|
||||
|
||||
int temp5Array[5];
|
||||
|
||||
tempBoardArray[0] = 28;
|
||||
tempBoardArray[1] = 45;
|
||||
tempBoardArray[2] = 33;
|
||||
tempBoardArray[3] = 4;
|
||||
tempBoardArray[4] = 49;
|
||||
|
||||
myBoard->setMyCards(tempBoardArray);
|
||||
|
||||
tempPlayerAndBoardArray[2] = tempBoardArray[0];
|
||||
tempPlayerAndBoardArray[3] = tempBoardArray[1];
|
||||
tempPlayerAndBoardArray[4] = tempBoardArray[2];
|
||||
tempPlayerAndBoardArray[5] = tempBoardArray[3];
|
||||
tempPlayerAndBoardArray[6] = tempBoardArray[4];
|
||||
|
||||
tempPlayerArray[0] = 47;
|
||||
tempPlayerArray[1] = 12;
|
||||
tempPlayerAndBoardArray[0] = tempPlayerArray[0];
|
||||
tempPlayerAndBoardArray[1] = tempPlayerArray[1];
|
||||
|
||||
playerArray[0]->setMyCards(tempPlayerArray);
|
||||
playerArray[0]->setMyCardsValueInt(myCardsValue.cardsValue(tempPlayerAndBoardArray,temp5Array));
|
||||
|
||||
playerArray[0]->setMyBestHandPosition(temp5Array);
|
||||
|
||||
// for(i=0; i<5; i++) {
|
||||
// cout << temp5Array[i] << " ";
|
||||
// }
|
||||
// cout << endl;
|
||||
|
||||
tempPlayerArray[0] = 31;
|
||||
tempPlayerArray[1] = 18;
|
||||
tempPlayerAndBoardArray[0] = tempPlayerArray[0];
|
||||
tempPlayerAndBoardArray[1] = tempPlayerArray[1];
|
||||
|
||||
playerArray[1]->setMyCards(tempPlayerArray);
|
||||
playerArray[1]->setMyCardsValueInt(myCardsValue.cardsValue(tempPlayerAndBoardArray,temp5Array));
|
||||
|
||||
playerArray[1]->setMyBestHandPosition(temp5Array);
|
||||
|
||||
tempPlayerArray[0] = 24;
|
||||
tempPlayerArray[1] = 48;
|
||||
tempPlayerAndBoardArray[0] = tempPlayerArray[0];
|
||||
tempPlayerAndBoardArray[1] = tempPlayerArray[1];
|
||||
|
||||
playerArray[2]->setMyCards(tempPlayerArray);
|
||||
playerArray[2]->setMyCardsValueInt(myCardsValue.cardsValue(tempPlayerAndBoardArray,temp5Array));
|
||||
|
||||
playerArray[2]->setMyBestHandPosition(temp5Array);
|
||||
|
||||
tempPlayerArray[0] = 19;
|
||||
tempPlayerArray[1] = 51;
|
||||
tempPlayerAndBoardArray[0] = tempPlayerArray[0];
|
||||
tempPlayerAndBoardArray[1] = tempPlayerArray[1];
|
||||
|
||||
playerArray[3]->setMyCards(tempPlayerArray);
|
||||
playerArray[3]->setMyCardsValueInt(myCardsValue.cardsValue(tempPlayerAndBoardArray,temp5Array));
|
||||
|
||||
playerArray[3]->setMyBestHandPosition(temp5Array);
|
||||
|
||||
// for(i=0; i<4; i++) {
|
||||
// cout << i << ": " << playerArray[i]->getMyCardsValueInt() << endl;
|
||||
// }
|
||||
|
||||
|
||||
dealerPosition = 0;
|
||||
|
||||
}
|
||||
|
||||
// ----------------------------------------
|
||||
|
||||
// Dealer, SB, BB bestimmen
|
||||
|
||||
Reference in New Issue
Block a user