- exclude bad numbers in getRandNumber (tools.cpp)

- delete warnings in localplayer
This commit is contained in:
floty
2008-10-20 09:25:45 +00:00
parent bf623ae6e8
commit 1c5e5767da
3 changed files with 6 additions and 6 deletions
+3 -3
View File
@@ -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();
+2 -2
View File
@@ -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;
}
}
+1 -1
View File
@@ -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);
};