OpenHoldem:EndUserDocumentation:Formulas

From Maxin Wiki

Jump to: navigation, search

Work in Progress

Contents

[edit] Other Formulas

[edit] f$prefold

If this formula evaluates to true, a pre-fold button is visible on the casino window and that pre-fold button is defined in the table map, then OpenHoldem will engage that pre-fold button as soon as it can (which may be before it is your turn to act).

[edit] f$P - # of Opponents to Consider

The symbols, prwin, prlos, prtie, prwinnow, prlosnow, handrankp adjust their values based the value of this formula (the number of opponents that should be considered).

The f$P value is important to these symbols because it determines how many opposing hands are simulated. The f$P value will radically affect the values of these symbols. The higher the f$P value the more opponent hands will be simulated and your win probability will be lower, for example. Similarly, the lower the f$P value the less opponent hands will be simulated and your win probability will be higher. For instance, AA against 9 opponents (f$P==9) has about a 30% chance of winning, assuming every hand stays for the showdown (no-foldem). AA against 1 opponent (P=1) has about an 80% chance of winning. The possible values for f$P are 0 to 22, inclusive. If f$P exceeds 22, it will be set to 22, as 22 is the maximum number of players our imaginary holdem table would be able to play (22 opponents * 2 cards = 44 cards, my two cards, the 5 common cards).

[edit] f$play - Play at this table

The formula controls whether the AutoPlayer should play at this table.

These are the possible return values for the formula and their meaning:

  • -2 Leave table
  • -1 No change (if you are sitting out, stay out, if sitting in stay that way)
  • 0 Sit out
  • 1 Sit in/Stay in

[edit] f$delay - Delay time before action button is pressed

The formula controls how long to delay, once a decision has been made, to press the action button. The formula evaluates to the delay time in milliseconds.

Example of this would be:
f$delay:
(f$monsterhand ? randomround * 3000 : 0)

If f$monsterhand returns true it will randomly delay the autoplay by 0-3 seconds, otherwise it will not delay at all.

[edit] dll - Dynamic Link Library (DLL) to load

Contains a filename or path to a DLL to load by default. For Example:

 ##dll##
 fn101.dll

[edit] Testing Formulas

[edit] f$test

This formula is intended to be used to test expressions. Whatever is typed in here gets calculated as a whole when the "Calc" button is clicked. f$test can be referenced from other formulas, although that is not recommended, as f$test is really intended as a development/debugging aid.

[edit] f$debug

The debug formula operates differently than the other formulas. It's purpose is to allow for arbitrary expressions to be evaluated and its value to be displayed. To add a new expression add a new line with an equal sign followed by the expression.

For example:

 = 2+2
 = f$UserDefinedFormula
 = nopponents

In order for the results to be displays you must either press the 'Calc' or 'Auto' button. The 'Auto' button will recalculate the debug formula once each heartbeat.

For example:

 4  = 2+2
 1  = f$UserDefinedFormula
 6  = nopponents

If an expression is invalid it will be reported where the result would normally be found.

There are several buttons that effect the display of the results in the debug formula, for more information look at the Formula Editor documentation

[edit] See also

Personal tools