- exclude bad numbers in getRandNumber (tools.cpp)
- delete warnings in localplayer
This commit is contained in:
@@ -4074,7 +4074,7 @@ void LocalPlayer::preflopEngine3() {
|
||||
}
|
||||
else {
|
||||
// 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
|
||||
if(potential>=6 || bluff <= 2) {
|
||||
|
||||
@@ -4509,7 +4509,7 @@ void LocalPlayer::turnEngine3() {
|
||||
// CALL und RAISE --> wenn bereits gesetzt wurde
|
||||
else {
|
||||
// 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
|
||||
if(bluff <= 4) raise = ((bluff+1)/2) * currentHand->getCurrentBeRo()->getHighestSet();
|
||||
@@ -4671,7 +4671,7 @@ void LocalPlayer::riverEngine3() {
|
||||
// CALL und RAISE --> wenn bereits gesetzt wurde
|
||||
else {
|
||||
// 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
|
||||
if(bluff <= 2 ) raise = bluff * currentHand->getCurrentBeRo()->getHighestSet();
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
|
||||
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;
|
||||
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;
|
||||
|
||||
if(bad) {
|
||||
for(i=0;i<(int)(sizeof(bad)/sizeof(int));i++) {
|
||||
for(i=0;i<countBad;i++) {
|
||||
tempArray[bad[i]]=0;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
|
||||
class Tools{
|
||||
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