vector in cardsChance

This commit is contained in:
floty
2008-12-20 18:47:38 +00:00
parent 7ba70be3ac
commit c95b4aecf8
4 changed files with 10 additions and 15 deletions
+3 -4
View File
@@ -20,6 +20,7 @@
#include "arraydata.h"
using namespace std;
struct RoundData
{
@@ -1055,11 +1056,9 @@ vector< vector<int> > ArrayData::getHandChancePreflop(int handCode) {
int i;
vector< vector<int> > chance(2);
vector<int> chance_0(10);
vector<int> chance_1(10);
chance[0] = chance_0;
chance[1] = chance_1;
chance[0].resize(10);
chance[1].resize(10);
for(i=0;i<10;i++) {
chance[0][i] = 0;
+1 -4
View File
@@ -22,11 +22,8 @@
#include <core/loghelper.h>
#include<iostream>
#include<vector>
using namespace std;
class ArrayData{
public:
ArrayData();
@@ -34,7 +31,7 @@ public:
~ArrayData();
void getHandChancePreflop(int, int**);
vector< vector<int> > getHandChancePreflop(int);
std::vector< std::vector<int> > getHandChancePreflop(int);
};
#endif
+4 -4
View File
@@ -19,6 +19,8 @@
***************************************************************************/
#include "cardsvalue.h"
using namespace std;
CardsValue::CardsValue()
{
}
@@ -568,11 +570,9 @@ vector< vector<int> > CardsValue::calcCardsChance(GameState beRoID, int* playerC
int i,j;
vector< vector<int> > chance(2);
vector<int> chance_0(10);
vector<int> chance_1(10);
chance[0] = chance_0;
chance[1] = chance_1;
chance[0].resize(10);
chance[1].resize(10);
for(i=0;i<10;i++) {
chance[0][i] = 0;
+2 -3
View File
@@ -24,10 +24,9 @@
#include "arraydata.h"
#include "tools.h"
#include<iostream>
#include<vector>
using namespace std;
class CardsValue{
public:
@@ -41,7 +40,7 @@ public:
int holeCardsToIntCode(int*);
int* intCodeToHoleCards(int);
vector< vector<int> > calcCardsChance(GameState, int*, int*);
std::vector< std::vector<int> > calcCardsChance(GameState, int*, int*);
int** showdown(GameState, int**, int);
};