Читайте также: |
|
When the “Edit/Formula” menu option is selected, or the “Sigma” button on the main toolbar is clicked, the following window is opened:
Figure 5.6‑37 OpenHoldem Formula Editor
On the left side of this window is a tree (“Formulas”) that allows you to select the various functions that are present in your loaded formula file. Regardless of the language that you use for your bot logic, OH-script, C++ or Perl, the functions you see in the screenshot above will be present in every formula file, as these functions are central to how you instruct OpenHoldem to make poker decisions.
This tree also has a second tab (“Symbols”) that is built in documentation for all the OH-script language functions. See the {OH-Script} section for more information on this language.
The large control on the right side of the window displays the code for whatever function you have currently selected in the tree on the left.
Note: This window in the Formula Editor uses the open source “Scintilla Editor” component to display and allow editing of the selected funciton. More information on this component can be found here: http://www.scintilla.org
Above this Scintilla editor control are a “results” field, and a “Calc” and an “Auto” button. The “Calc” button will calculate the currently selected function and display the results in the “results” field. The length of time in seconds that it takes to calculate this function is added to the titlebar text of the Formula Editor window in square brackets. The “Auto” button is only available when the “f$debug” function is selected, and will cause the information displayed in the Scintilla editor control to be updated once every screen scrape cycle.
Below the Scintilla editor control are “OK”, “Apply” and “Close” buttons that mirror the functionality of the File menu options, and the toolbar buttons as described below.
Дата добавления: 2015-07-20; просмотров: 127 | Нарушение авторских прав
<== предыдущая страница | | | следующая страница ==> |
Toolbars | | | Secondary Functions |