コード例 #1
0
def get_tactic_by_waves_forward(waves_forward):
    branch = Branch()
    for waves_forward in range(waves_forward, 0, -1):
        best_basket = compute_best_basket(branch.player, waves_forward)
        branch.buy_basket(best_basket)
        yield branch.copy()
        branch.next_wave()
コード例 #2
0
def get_max_income_tactic():
    branch = Branch()
    while True:
        best_basket = compute_best_basket(branch.player)
        branch.buy_basket(best_basket)
        yield branch.copy()
        branch.next_wave()