vector in cardsChance
This commit is contained in:
1 parent
7ba70be3ac
commit
c95b4aecf8
4 files changed
+10
-15
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user