In this example, the computer learns playing the cartpole game using with tensorflow, openai gym libraries.
Tensorflow
Gym
Python: 3.7.0
Tensorflow: 2.1.0
Gym: 0.16.0
Uncomment the line below in "main.py" to display how to computer plays the game
env.render()
python main.py