Skip to content

This project demonstrates how an AI agent can learn to play Pong using reward-based decision-making. Built with PhaserJS and structured for easy integration with RL algorithms.

License

Notifications You must be signed in to change notification settings

Harold2828/ReinforcementLearningPong

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

29 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿง  Reinforcement Learning with the Basic Pong Game

A hands-on project combining classic arcade gameplay with the power of Reinforcement Learning (RL).
This setup demonstrates how an AI agent can learn to master a Pong game through trial-and-error, rewards, and intelligent adaptation.


๐ŸŽฎ Pong Game (Frontend)

Built using PhaserJS, this lightweight browser-based game simulates a simplified Pong environment, ideal for testing RL algorithms and observing their performance in real time.


๐Ÿ–ฅ๏ธ Server Side (Backend)

The backend is developed using Python 3.12.2 and Flask 3.1.0, with custom support for WebSockets to allow real-time communication between the AI agent and the game environment.


๐Ÿงฐ Tech Stack Overview

Component Technology
Game Engine PhaserJS
Frontend Build Vite + Node.js
Backend Server Flask 3.1.0 (with WebSockets)
AI Framework PyTorch
Language Python (AI/backend) + JavaScript (frontend)

๐Ÿš€ Upcoming Features

  • โœ… Live RL agent playing Pong via WebSocket communication
  • ๐Ÿ”„ Training feedback dashboard (real-time graphs or logs)
  • ๐Ÿง  Model saving/loading with PyTorch
  • ๐Ÿ“ˆ Performance tracking over episodes

๐Ÿค Contributing

Contributions, ideas, and feedback are always welcome!
Feel free to fork the repo, open issues, or create pull requests.


๐Ÿ“„ License

This project is licensed under the MIT License.

About

This project demonstrates how an AI agent can learn to play Pong using reward-based decision-making. Built with PhaserJS and structured for easy integration with RL algorithms.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published