Skip to content

Trained two Neural Networks that get the raw pixel input from the game screen to fight against each other and get better by learning good weights using policy gradients

Notifications You must be signed in to change notification settings

mstale007/Two_Playered_Pong_Using_Policy_Gradients

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Training AI to beat Pong game using Policy Gradients

I have made a 2 playered pong game in which both players are individual Neural networks and they are constantly trying to supress each other and maximize thier scores

Introduction

Both Neural Networks are given same image as an input, they give thier own ouputs respectively and action is taken on slider accordingly such that both try to maximize rewards. Both learn from thier experiences using policy gradients

Credits

The game was based on Siraj Raval's code and the structure of Neural Network was decided by taking reference to Andrej Karpathy's blog post

About

Trained two Neural Networks that get the raw pixel input from the game screen to fight against each other and get better by learning good weights using policy gradients

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages