code: function(playerCards, dealerCard, handValue, handCount, dealerCheckedBlackjack, options)
      {
          // Can you split?
          if ((playerCards[0] == playerCards[1]) && (playerCards.length == 2) && (handCount < options.maxSplitHands))
          {
              // Split unless 4s, 5s, and 10s
              if ((playerCards[0] != 4) && (playerCards[0] != 5) && (playerCards[0] != 10))
              {
                  return "split";
              }
          }
  
          // Double
          if (((playerCards.length == 2) && ((handCount == 1) || options.doubleAfterSplit)) &&
                  ((handValue.total >= options.doubleRange[0]) && (handValue.total <= options.doubleRange[1])))
          {
              // Only on 9-11
              if ((handValue.total == 9) && (dealerCard < 7) && (dealerCard != 1))
              {
                  return "double";
              }
              if ((handValue.total == 10) && (dealerCard < 10) && (dealerCard != 1))
              {
                  return "double";
              }
              if (handValue.total == 11)
              {
                  return "double";
              }
          }
  
          // Hit and stand
          if (handValue.soft)
          {
              // Hit until you get to 17, 18 against dealer 9-Ace
              if ((handValue.total < 18) || ((handValue.total == 18) && ((dealerCard >= 9) || (dealerCard == 1))))
              {
                  return "hit";
              }
          }
  
          if (handValue.total <= 11)
          {
              return "hit";
          }
          else if (handValue.total >= 17)
          {
              return "stand";
          }
          else
          {
              // Hit on 7 or above, else stand
              return ((dealerCard >= 7) || (dealerCard == 1)) ? "hit" : "stand";
          }
      }
docs: Recommended actions follow Basic Strategy, based on the rules currently in play