class_docstr: ## [History](../index.html#History)
  
  This defines when a game ends, calculates the utility and sample chance events (dealing cards).
  
  The history is stored in a string:
  
  * First two characters are the cards dealt to player 1 and player 2
  * The third character is the action by the first player
  * Fourth character is the action by the second player
docstr: Initialize with a given history string
docstr_tok: ["Initialize","with","a","given","history","string"]
code: def __init__(self, history: str = ""):
      """
      Initialize with a given history string
      """
      self.history = history
  
imports: from typing import List, cast, Dict
  import numpy
  from labml import experiment
  from labml.configs import option
  from labml_nn.cfr import History, InfoSet, Action, Player, CFRConfigs
  from labml_nn.cfr.infoset_saver import InfoSetSaver
label_desc: Use image node_id 1 to create a new History object from inherited base classes: _History with example: obj = History(history)