Skip to content

Instantly share code, notes, and snippets.

@mlzxy
Created December 28, 2020 03:02
Show Gist options
  • Save mlzxy/cbf373669c4b1737cb7f9ea0a8cf8087 to your computer and use it in GitHub Desktop.
Save mlzxy/cbf373669c4b1737cb7f9ea0a8cf8087 to your computer and use it in GitHub Desktop.
# in real-world scenaria, computational resource is usually fixed
# therefore, we only use time budget here
game_tree = Node(current_state)
while time_budget > 0:
start_time = time()
build(game_tree)
time_budget -= time() - start_time
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment