discount_factor learning_rate compute the new target -valueright after the line containing env step)/ataribot/bot_ _q_table py state rewarddone_ env step(actionqtarget reward discount_factor np max( [state :]episode_reward +reward on the line directly after qtargetupdate the -value table using weighted average of the old and new -values/ataribot/bot_ _q_table py qtarget reward discount_factor np max( [state :] [stateaction -learning_rate [stateactionlearning_rate qtarget episode_reward +reward check that your main game loop now matches the following