# Problem 1(b): number of iterations for each gamma
# 4x4 gridworld from 1(a), delta stays at the demo default 0.0001, max 500 iterations
from common import make_mdp, run_vi

print('gamma  iterations')
for gamma in [0.9, 0.7, 0.1, 0.001]:
    n_iter, v_start, v_hist = run_vi(make_mdp(gamma=gamma))
    print(gamma, ' ', n_iter)
