Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Base case
- if len(game_state_node.children) == 0:
- return 1
- else:
- for c in game_state_node.children:
- return leaf_count(c)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement