diff --git a/src/engine/local_engine/cardsvalue.cpp b/src/engine/local_engine/cardsvalue.cpp index 0691c198..c2828348 100755 --- a/src/engine/local_engine/cardsvalue.cpp +++ b/src/engine/local_engine/cardsvalue.cpp @@ -18,6 +18,8 @@ * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * ***************************************************************************/ #include "cardsvalue.h" +#include +#include CardsValue::CardsValue() { @@ -639,4 +641,21 @@ int** CardsValue::calcCardsChance(GameState beRoID, int* playerCards, int* board return hand; } +int** CardsValue::showdown(GameState beRoID, int** playerCards, int playerCount) { + int i,j; + + int** chance = new int*[2]; + + for(i=0;i<10;i++) { + chance[i] = new int[2]; + for(j=0;j<2;j++) { + chance[i][j] = 0; + } + } + + int rand[5]; + + return chance; + +} diff --git a/src/engine/local_engine/cardsvalue.h b/src/engine/local_engine/cardsvalue.h index f041085c..3ac14ab7 100755 --- a/src/engine/local_engine/cardsvalue.h +++ b/src/engine/local_engine/cardsvalue.h @@ -22,6 +22,7 @@ #include "game_defs.h" #include "arraydata.h" +#include "tools.h" class CardsValue{ public: @@ -36,6 +37,7 @@ public: int* intCodeToHoleCards(int); int** calcCardsChance(GameState, int*, int*); + int** showdown(GameState, int**, int); }; diff --git a/src/engine/local_engine/localhand.cpp b/src/engine/local_engine/localhand.cpp index e9a2912f..26d76ee4 100755 --- a/src/engine/local_engine/localhand.cpp +++ b/src/engine/local_engine/localhand.cpp @@ -313,7 +313,6 @@ LocalHand::LocalHand(boost::shared_ptr f, GuiInterface *g, BoardI } - // ---------------------------------------- // determine dealer, SB, BB