Skip to content
inverted pendulum implementation with python and q learnin
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Inverted Pendulum

This project contains physic simulation of environment and solving the inverted pendulum problem using Q-Learned agent!


  • python = 2.7
  • pygame >= 1.9


  • installing dependencies:

    $ sudo apt-get install python-pygame

  • launch:

    $ git clone
    $ cd inverted-pendulum 
    $ python
  • Command-Line Interface:

    -a / --ai-player: use AI player instead of Keyboard

    -l / --learning : start with Learning Engine

    -c / --clean-learning-data : backup previous learned data and start new one

    -s / --show-learned-data: print learned data in console, should be used with -l

    -g / --enable-gui: enable gui while learning

You can’t perform that action at this time.