Skip to content

Harold2828/ReinforcementLearningPong

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 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

 
 
 

Contributors