Introduction to HRC Scripting

HRC (Hold'em Resources Calculator) Scripting is a powerful tool designed for building and customizing game trees in poker simulations. It leverages a Java-based API with script execution via the Graal JavaScript engine. The primary goal is to enable users to create detailed and accurate poker decision trees that adhere to specific game rules and strategies. The scripting language allows for dynamic decision-making and is particularly useful for configuring preflop and postflop betting strategies. For example, users can define custom bet sizes, handle complex multi-street betting scenarios, and adjust strategies based on stack sizes and positions.

Main Functions of HRC Scripting

  • Preflop Configuration

    Example Example

    Setting custom bet sizes for open raises, 3-bets, 4-bets, and 5-bets based on player positions.

    Example Scenario

    In a preflop scenario, you can configure different open raise sizes for the Button, Small Blind, and Big Blind positions. For instance, the script might set a 2.3bb open raise for the Button and a 3.5bb open raise for the Small Blind to account for different strategic considerations.

  • Postflop Betting Strategies

    Example Example

    Defining geometric betting hints and additional pot-percentage sizings for flop bets.

    Example Scenario

    Postflop, the script can be configured to offer geometric betting hints such as 50% or 75% of the pot for heads-up scenarios, and 60% or 80% for multiway pots. Additionally, it can add specific sizings like 33% of the pot for continuation bets on the flop, providing a range of betting options depending on the board texture and opponent actions.

  • Handling Limping and Flatting

    Example Example

    Configuring rules for limps and flat calls, including allowances for Small Blind completes and cold calls.

    Example Scenario

    In deeper stack PKO (Progressive Knockout) tournaments, the script can allow for limping from early positions and set specific sizings for isolation raises. It can also define the number of flats allowed against opens or 3-bets, and whether cold calls are permitted or not, tailoring the strategy to the unique dynamics of knockout play.

Ideal Users of HRC Scripting

  • Professional Poker Players

    Professional poker players benefit from HRC Scripting by being able to fine-tune their strategies and explore advanced game tree scenarios. The ability to create custom scripts allows them to simulate and analyze various strategic options in-depth, helping them to gain a competitive edge in high-stakes games.

  • Poker Coaches and Analysts

    Poker coaches and analysts use HRC Scripting to teach complex concepts and improve their students' understanding of game theory optimal (GTO) strategies. By creating detailed simulations and customized scenarios, they can demonstrate the impact of different decisions and help players develop more effective strategies.

How to Use HRC Scripting

  • Visit aichatonline.org for a free trial without login, no need for ChatGPT Plus.

    Access the HRC Scripting feature by visiting the website and starting a free trial without requiring any login or subscription.

  • Familiarize Yourself with the API

    Review the provided API documentation and example scripts to understand available methods, properties, and constants. This will help in creating and modifying scripts effectively.

  • Create or Modify Scripts

    Use the provided example scripts as a reference to create or modify scripts according to your requirements. Ensure adherence to the API for valid script generation.

  • Test the Scripts

    Run your scripts in the HRC environment to ensure they function as expected. Use the debugging tools and logs to identify and fix any issues.

  • Optimize and Iterate

    Refine your scripts based on the results and feedback. Continuously test and optimize them to enhance their performance and accuracy.

  • Scripting
  • Custom Scripts
  • Game Tree
  • Poker AI
  • Preflop Sizing

HRC Scripting Q&A

  • What is HRC Scripting?

    HRC Scripting allows users to create and customize game tree building scripts using JavaScript, leveraging HRC's Java base and Graal's JavaScript engine.

  • How do I determine player positions in HRC Scripting?

    Use specific methods like ctx.getPlayerIndexButton(), ctx.getPlayerIndexSmallBlind(), and ctx.getPlayerIndexBigBlind() to accurately reference player positions.

  • Can I use global variables in HRC Scripting?

    No, HRC Scripting requires stateless script execution. Avoid using global or external variables; rely on the current context provided by each function call.

  • How do I handle preflop sizings?

    Define preflop sizings using ctx.sizingsPreflop() and adjust based on the player’s position and bet count. Refer to the provided example scripts for guidance.

  • What is the purpose of getBetCount()?

    The getBetCount() method returns the number of bets or raises on the current street before the current player acts, useful for determining open raises and other betting actions.