- exclude bad numbers in getRandNumber (tools.cpp)
- delete warnings in localplayer
This commit is contained in:
@@ -4074,7 +4074,7 @@ void LocalPlayer::preflopEngine3() {
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
// RAISE --> wenn hohes Potential
|
// RAISE --> wenn hohes Potential
|
||||||
if(potential >= 4 && 6 * currentHand->getSmallBlind() >= currentHand->getCurrentBeRo()->getHighestSet() || bluff <= 6) {
|
if((potential >= 4 && 6 * currentHand->getSmallBlind() >= currentHand->getCurrentBeRo()->getHighestSet()) || bluff <= 6) {
|
||||||
// extrem hohes Potential --> groï¿År Raise
|
// extrem hohes Potential --> groï¿År Raise
|
||||||
if(potential>=6 || bluff <= 2) {
|
if(potential>=6 || bluff <= 2) {
|
||||||
|
|
||||||
@@ -4509,7 +4509,7 @@ void LocalPlayer::turnEngine3() {
|
|||||||
// CALL und RAISE --> wenn bereits gesetzt wurde
|
// CALL und RAISE --> wenn bereits gesetzt wurde
|
||||||
else {
|
else {
|
||||||
// RAISE --> wenn Potential besonders gut
|
// RAISE --> wenn Potential besonders gut
|
||||||
if(potential >=4 && 2 * tempFold * currentHand->getSmallBlind() >= currentHand->getCurrentBeRo()->getHighestSet() || (bluff <= 4 && 3 * tempFold * currentHand->getSmallBlind() >= currentHand->getCurrentBeRo()->getHighestSet())) {
|
if((potential >=4 && 2 * tempFold * currentHand->getSmallBlind() >= currentHand->getCurrentBeRo()->getHighestSet()) || (bluff <= 4 && 3 * tempFold * currentHand->getSmallBlind() >= currentHand->getCurrentBeRo()->getHighestSet())) {
|
||||||
|
|
||||||
// bluff - raise
|
// bluff - raise
|
||||||
if(bluff <= 4) raise = ((bluff+1)/2) * currentHand->getCurrentBeRo()->getHighestSet();
|
if(bluff <= 4) raise = ((bluff+1)/2) * currentHand->getCurrentBeRo()->getHighestSet();
|
||||||
@@ -4671,7 +4671,7 @@ void LocalPlayer::riverEngine3() {
|
|||||||
// CALL und RAISE --> wenn bereits gesetzt wurde
|
// CALL und RAISE --> wenn bereits gesetzt wurde
|
||||||
else {
|
else {
|
||||||
// RAISE --> wenn Potential besonders gut
|
// RAISE --> wenn Potential besonders gut
|
||||||
if(potential >=4 && 2 * tempFold * currentHand->getSmallBlind() >= currentHand->getCurrentBeRo()->getHighestSet() || (bluff <= 2 && 4 * tempFold * currentHand->getSmallBlind() >= currentHand->getCurrentBeRo()->getHighestSet())) {
|
if((potential >=4 && 2 * tempFold * currentHand->getSmallBlind() >= currentHand->getCurrentBeRo()->getHighestSet()) || (bluff <= 2 && 4 * tempFold * currentHand->getSmallBlind() >= currentHand->getCurrentBeRo()->getHighestSet())) {
|
||||||
|
|
||||||
// bluff - raise
|
// bluff - raise
|
||||||
if(bluff <= 2 ) raise = bluff * currentHand->getCurrentBeRo()->getHighestSet();
|
if(bluff <= 2 ) raise = bluff * currentHand->getCurrentBeRo()->getHighestSet();
|
||||||
|
|||||||
@@ -27,7 +27,7 @@
|
|||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
void Tools::getRandNumber(int start, int end, int howMany, int* randArray, bool different, int* bad) {
|
void Tools::getRandNumber(int start, int end, int howMany, int* randArray, bool different, int* bad, int countBad) {
|
||||||
|
|
||||||
int r = end-start+1;
|
int r = end-start+1;
|
||||||
unsigned char rand_buf[4];
|
unsigned char rand_buf[4];
|
||||||
@@ -61,7 +61,7 @@ void Tools::getRandNumber(int start, int end, int howMany, int* randArray, bool
|
|||||||
for (i=0; i<(end-start+1); i++) tempArray[i]=1;
|
for (i=0; i<(end-start+1); i++) tempArray[i]=1;
|
||||||
|
|
||||||
if(bad) {
|
if(bad) {
|
||||||
for(i=0;i<(int)(sizeof(bad)/sizeof(int));i++) {
|
for(i=0;i<countBad;i++) {
|
||||||
tempArray[bad[i]]=0;
|
tempArray[bad[i]]=0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -22,7 +22,7 @@
|
|||||||
|
|
||||||
class Tools{
|
class Tools{
|
||||||
public:
|
public:
|
||||||
static void getRandNumber(int, int, int, int*, bool, int* = 0);
|
static void getRandNumber(int, int, int, int*, bool, int* = 0, int = 0);
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user