Giter VIP home page Giter VIP logo

atari_pong_gaming_bot's Introduction

Neural Networks For Pong

Atari Pong

Introduction

The code in this repository will let you train a Neural Network to play Pong solely based on the input frames of the game and the results of each round. The code in me_pong.py is intended to be a simpler to follow version of pong.py which was written by Andrej Karpathy. You can play around with other such Atari games at the Openai Gym.

Setup

  1. Follow the instructions for installing Openai Gym here. You may need to install cmake first.
  2. Run pip install -e '.[atari]'.
  3. Run python me_pong.py

Seeing the game

If you want to see the game happen, open me_pong.py and uncomment the following line:

# env.render()

Performance

According to the blog post, this algorithm should take around 3 days of training on a Macbook to start beating the computer.

Consider tweaking the hyperparameters or using CNNs to boost the performance further.

Misc.

Note, if you want to run Andrej Karpathy's original code, run python pong.py.

Credit

This is based off of the work of Andrej Karpathy's great blog post and code here as well as the Readmecode credit goes to Dhruv Parthasarathy. I've merely created a wrapper to get people started.

Tutorial

To see a step by step tutorial for building this, see this blog post.

atari_pong_gaming_bot's People

Contributors

jalajthanaki avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

sethips kyuhwas

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.