showdown beginning
This commit is contained in:
@@ -18,6 +18,8 @@
|
||||
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
|
||||
***************************************************************************/
|
||||
#include "cardsvalue.h"
|
||||
#include <core/openssl_wrapper.h>
|
||||
#include <limits>
|
||||
|
||||
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;
|
||||
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
};
|
||||
|
||||
|
||||
@@ -313,7 +313,6 @@ LocalHand::LocalHand(boost::shared_ptr<EngineFactory> f, GuiInterface *g, BoardI
|
||||
|
||||
|
||||
}
|
||||
|
||||
// ----------------------------------------
|
||||
|
||||
// determine dealer, SB, BB
|
||||
|
||||
Reference in New Issue
Block a user