Artificial Intelligence, Machine Learning, Data Science, Reinforcement Learning, OpenAI.
= image.mode,image.size,image.tobytes() image = pygame.image.fromstring(data, size, mode) DISPLAYSURF.blit(image,(0,0)) print_summary('Step {}'.format(steps),(10,10),15) pygame.display.update() clock.tick(100) count+=1 if done: print_summary('Episode ended !!!'.format(steps),(100,100),30) state =