Quest: Follow the tutorial and push your OpenAI game simulation on your git repo.

Note that we provide you some ways to do the quest, but you can do WHATEVER works for you, we are happy to receive your submission, no matter how or what. We love you :hug:



Here is the flow of this quest:

Milestone 1: Set up a Python coding environment

Milestone 2: Start to code

Milestone 3 : Understand the code a bit

Milestone 4: Modify !!!



Excited yet??? Let's get started.



Milestone 1: Set up a Python coding environment

conda create --name env_name

activate env_name

pip install gym

Milestone 2: YAYY!!! Now we can start coding.

python filename.py

filename.py

import gym # to import gym package env = gym.make('CartPole-v0') # to load the cart pole game env.reset() # to reset the environment for _ in range(1000): # a for loop to do random step env.render() env.step(env.action_space.sample()) # take a random action env.close() # close

python filename.py

Milestone 3: Read the code a bit.

for

Milestone 4: Bonus 500 points.

Have you seen what Com and Nimbus are doing???They simulate drone environment and then train with RL algorithm, using OpenAI gym package!!! Cool huh???I don't know if Python is the future. But Python is now. This quest is to help you write your first simulation. We hope that eventually you would showcase something like above because we love you. Never code before? No worry, this is exactly for you. We are with you for the entire quest.+ step 1: get Anaconda (for Python 3.7) here Please look at the following gif to see know to download Anaconda from the link:Here is how to install Anaconda+ step 2: create an enviroment. You can run this line+ step 3: log into that environment by typingYou will see the name of your env if you log in successfully:+ step 4: install OpenAI gym package:Please have a look at this gif to see how to create an environment, install pip and install gym packageI followed this tutorial when I started. It has similar steps:+ Install Python+ Create Python environment+ Install pip+ Use pip to install OpenAI gym package.Get stuck? Take a screenshot and ask on the server !!To code in a file and run with. You can use any editor (Notepad or the one specialised for writing code). This tutorial teaches you to run Cart-Pole game with reinforcement learning. The code is pretty simple, you can type/copy this into a file (If you run with, you would see the cart pole doing random stuff.Please have look at this gif to see how to run your first cartpole example:The Python community develops a cool notebook for coding and running Python code, named Jupyter Notebook. Imagine your own physical notebook but you can write code and runs the code inside the notebook. That's the future :)Got your cart pole running yet?? Remember that you can ask questions on the server , we live on the server now :D we love you :DYou would see that the code is quite simple:+ to load the gym package+ to create the cart pole+ to run aloop so that the cart pole choose random actions from the vast action space for 1000 times.Now create a git repo (or a repl.it) and push your code, share me your code.If you can do more than the tutorial: Implementing your own simple (whatever!) algorithm. Currently the Cart Pole is taking random action from the action space, if you can just change that behavior a little bit.. without breaking the code..You can check out Nimbus's Q-learning implementation here . Have fun !!!