Welcome, Guest. Please login or register.
August 07, 2020, 06:34:09 PM
Home Help Login Register
News:

Shanky Technologies Poker Bot Support Forum  |  General Category  |  PPL Support (Moderator: sngbot)  |  Topic: help with "when Condition " 0 Members and 1 Guest are viewing this topic.
Pages: [1] Print
Author Topic: help with "when Condition "  (Read 241 times)
Covid19Sux
Confused Newbie
*

Karma: 0
Posts: 1


« on: July 22, 2020, 06:56:58 AM »

having problem with my code and can't find where the error is. please help anyone?


  when not board = 9 and not board = T and not board = J and not board = Q and not board = K and not board = A and not FlushPossible and not StraightPossible Bet 105% Force delay 7
  when board = 9 and not board = 9 T and not board = 9 J and not  board = 9 Q and not  board = 9 K and not  board = 9 A and  not FlushPossible and  not StraightPossible and not PairOnBoard Bet 66% delay 7
  when board = T and not board = 9 T and not board = T J and not  board = T Q and not  board = T K and not  board = T A and  not FlushPossible and  not StraightPossible and not PairOnBoard Bet 66% delay 7
  when board = J and not board = J 9 and not board = J T and not  board = J Q and not  board = J K and not  board = J A and  not FlushPossible and  not straightPossible and not PairOnBoard Bet 66% delay 7
  when board = Q and not board = Q 9 and not board = Q T and not  board = J Q and not  board = Q K and not  board = Q A and  not FlushPossible and  not StraightPossible and not PairOnBoard Bet 66% delay 7
  when board = K and not board = K 9 and not board = K T and not  board = K J and not  board = Q K and not  board = K A and  not FlushPossible and  not StraightPossible and not PairOnBoard Bet 66% delay 7
  when board = A and not board = A 9 and not board = A T and not  board = A J and not  board = A Q and not  board = K A and  not FlushPossible and  not StraightPossible and not PairOnBoard Bet 66% delay 7
  when board = AK or board = AQ or board = AJ or board = AT or board = A9 or board = KQ or board = KJ or board = KT or board = K9 or board = QJ or board = QT or board = Q9 or board = JT or board = J9 or board = T9 and not FlushPossible and not StraightPossible and not PairOnBoard Bet 33% delay 7
  when paironboard and havetrips Bet 33% Force delay 4
  when haveTrips Bet 33% Force delay 4
Logged
Egor
Forum Admin
Extreme Botter
*****

Karma: 360
Posts: 33637



WWW
« Reply #1 on: July 22, 2020, 02:24:43 PM »

what is the error message the bot gives? it will tell you the codeline number and give you a clue as to what the issue is

use Notepad 2 or Notepad++ to see the codline numbers

(first guess is missing and 'and' in there)

Logged

Please do not PM me about license issues or help stuff - email me or use the Help board. Thanks! -Egor
PokerGod
Experienced Botter
*****

Karma: 28
Posts: 417


« Reply #2 on: July 24, 2020, 01:26:36 AM »

having problem with my code and can't find where the error is. please help anyone?


  when not board = 9 and not board = T and not board = J and not board = Q and not board = K and not board = A and not FlushPossible and not StraightPossible Bet 105% Force delay 7
  when board = 9 and not board = 9 T and not board = 9 J and not  board = 9 Q and not  board = 9 K and not  board = 9 A and  not FlushPossible and  not StraightPossible and not PairOnBoard Bet 66% delay 7
  when board = T and not board = 9 T and not board = T J and not  board = T Q and not  board = T K and not  board = T A and  not FlushPossible and  not StraightPossible and not PairOnBoard Bet 66% delay 7
  when board = J and not board = J 9 and not board = J T and not  board = J Q and not  board = J K and not  board = J A and  not FlushPossible and  not straightPossible and not PairOnBoard Bet 66% delay 7
  when board = Q and not board = Q 9 and not board = Q T and not  board = J Q and not  board = Q K and not  board = Q A and  not FlushPossible and  not StraightPossible and not PairOnBoard Bet 66% delay 7
  when board = K and not board = K 9 and not board = K T and not  board = K J and not  board = Q K and not  board = K A and  not FlushPossible and  not StraightPossible and not PairOnBoard Bet 66% delay 7
  when board = A and not board = A 9 and not board = A T and not  board = A J and not  board = A Q and not  board = K A and  not FlushPossible and  not StraightPossible and not PairOnBoard Bet 66% delay 7
  when board = AK or board = AQ or board = AJ or board = AT or board = A9 or board = KQ or board = KJ or board = KT or board = K9 or board = QJ or board = QT or board = Q9 or board = JT or board = J9 or board = T9 and not FlushPossible and not StraightPossible and not PairOnBoard Bet 33% delay 7
  when paironboard and havetrips Bet 33% Force delay 4
  when haveTrips Bet 33% Force delay 4


Maybe check this:

when board = 9 and not board = 9 T and not board = 9 J and not  board = 9 Q and not  board = 9 K and not  board = 9 A and  not FlushPossible and  not StraightPossible and not PairOnBoard Bet 66% force delay 7
Logged

***
Sleeper
Botter
***

Karma: 14
Posts: 116


« Reply #3 on: July 24, 2020, 11:04:40 AM »

There is a problem with this line.

when board = AK or board = AQ or board = AJ or board = AT or board = A9 or board = KQ or board = KJ or board = KT or board = K9 or board = QJ or board = QT or board = Q9 or board = JT or board = J9 or board = T9 and not FlushPossible and not StraightPossible and not PairOnBoard Bet 33% delay 7

You have to bracket the 'or' conditions.
If you look at the precedence of the logic operators.
‘Not’ has a higher precedence than ‘And’ which has a higher precedence than ‘Or’.

Therefor, your line would be interpreted as:

When board = T9 and not FlushPossible and not StraightPossible and not PairOnBoard Bet 33% delay 7

'or' conditions should be put between brackets:

when (board = AK or board = AQ or board = AJ or board = AT or board = A9 or board = KQ or board = KJ or board = KT or board = K9 or board = QJ or board = QT or board = Q9 or board = JT or board = J9 or board = T9) and not FlushPossible and not StraightPossible and not PairOnBoard Bet 33% force delay 7

It might also be easier to read if you used brackets for your multiple 'not' conditions.

 and not(FlushPossible or StraightPossible or PairOnBoard)
Logged
Pages: [1] Print 
Shanky Technologies Poker Bot Support Forum  |  General Category  |  PPL Support (Moderator: sngbot)  |  Topic: help with "when Condition "
Jump to:  


Login with username, password and session length

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!