Shoe Generators

Generate shoes with a specific true count

shoe_generators.hilo_generator(true_count, decks, deck_penetration, cards_present)

Generate a random shoe with a specific true count.

Parameters:
  • true_count (int) – The target true count.

  • decks (int) – The maximum number of decks in the shoe.

  • deck_penetration (float) – When to reshuffle the shoe. Reshuffles when cards remaining < starting cards * deck penetration. So the cards in the returned shoe must be at least starting cards * deck penetration.

  • cards_present (list[int]) – The cards we have already seen, so that we don’t get shoe with more cards of one type than possible. For example, if the player was dealt 3 and 5, and the dealer’s up card is a 3, then for 6 decks the maximum possible number of 3s is 6*4-2=22.

Returns:

A shoe with a specific true count.

Return type:

list[int]