Skip to content

Collection of examples, links and slides for the tutorial "Building a Pong playing AI in just 1 hour(plus 4 days training...)" presented at PyDataLondon 2016

License

Notifications You must be signed in to change notification settings

sclyst/PyDataLondon2016

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Building a Pong playing AI

This repository contains the resources needed for the tutorial, Building a Pong playing AI in just 1 hour(Plus 4 days training time)

Requirements

Either 2 or 3 is fine.
Download which ever version matches the version of Python you plan on using.
Again match the version.
Match version

Other requirments options

Tensorflow requires an NVidea GPU and only runs on Linux/Mac so if you don't have these Theano is an option. The examples are all in Tensorflow, but that translates very easily to Theano and we have an example Q-learning Theano implementation that can be extended to work with Pong.

Either 2 or 3 is fine.
Download which ever version matches the version of Python you plan on using.
Download anaconda

On windows cmd:

>> conda install mingw libpython numpy

Checkout Theano

git clone https://github.com/Theano/Theano.git

>> cd Theano
>> python setup.py develop

Set your project interpreter to be using anaconda python

Resources

Used for running reinforcement learning agents against PyGame
PyGame implementation of pong
Even pong can be hard if your just a machine. 
Half pong is a simplified version of pong, if you can believe it.
The score and other bits of noise are removed from the game. 
There is only 1 bar and it is only 80x80 pixels which speeds up training and removes the need to downsize the screen 

Examples

About

Collection of examples, links and slides for the tutorial "Building a Pong playing AI in just 1 hour(plus 4 days training...)" presented at PyDataLondon 2016

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%