old_contents: import numpy as np
  import ule
  
  import time
  
  def main():
      env = ule.load()
      sensors = env.sensors()
      motors = env.motors()
  
      for game in range(10):
          done = 0
          env.reset()
          while done == 0:
              for motor in motors:
                  motor.randomize()
  
              reward, done, info = env.step()
              print(reward)
  
      env.close()
  
  if __name__ == '__main__':
      main()
new_contents: import numpy as np
  import ule
  
  import time
  
  def main():
      env = ule.load()
      sensors = env.sensors()
      motors = env.motors()
  
      for game in range(10):
          done = 0
          total_reward = 0
          while done == 0:
              for motor in motors:
                  motor.randomize()
  
              reward, done, info = env.step()
              total_reward += reward
          print(total_reward)
          env.reset()
  
      env.close()
  
  if __name__ == '__main__':
      main()
subject: test agent edit