Пример #1
0
def build_tree():
    root = Branch()
    branches = [root]
    for _ in range(500):
        new_branch = Branch()
        branches.append(new_branch)
        clear_branch = find_clear_branch(root)
        clear_branch.attach(new_branch)

    secret_branch = choice(branches)
    secret_branch.has_kitten = True
    root.show()
    return root