Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- anytime_value = AnytimeValue() # TA Note: Use this to store values.
- for depth in range(1, depth_limit + 1):
- value = minimax_search_alphabeta(state, heuristic_fn=heuristic_fn, depth_limit=depth, maximize=maximize)
- anytime_value.set_value(value)
- return anytime_value
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement