Skip to content
/ ai-pong Public

Pong in Unity Game Engine, but the one paddle is trained to move on its own using reinforcement learning through the MLAgents tooklkit

Notifications You must be signed in to change notification settings

rNuv/ai-pong

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

AI Pong

Description

After learning some Unity in my Virtual Reality class, I decided to test out the ML-Agents toolkit, an SDK of different machine learning algorithms for use in the Unity environment. I made a game of Pong and used reinforcement learning to train one paddle to hit the ball. I used multiple agents with multiple environements and randomized each episode to make the training faster and more accurate. The trained model ended up working pretty well with an average reward of 0.88 (1 being the best).

Pictures

The left paddle is the trained agent moving on its own.

Technologies

  • Unity
  • C#

Made with <3 by Arnav, circa 2020

About

Pong in Unity Game Engine, but the one paddle is trained to move on its own using reinforcement learning through the MLAgents tooklkit

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages