This project combines Tetris with Deep Q-Learning, creating an AI that learns to play the game through reinforcement learning.
- 🎮 Tetris game built with Pygame
- 🧠 Deep Q-Learning implementation
- 🚀 Multi-process training
- 💾 Save/Load AI models
# Create virtual environment (recommended)
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
# Install requirements
pip install -r requirements.txtStart the program:
python main.pyThen:
- Type 'y' to train a new AI
- Type 'n' to watch the trained AI play
├── main.py # Entry point
├── tetris_game.py # Game implementation
├── dql_agent.py # AI agent
├── train.py # Training functions
├── tetris_env.py # Gym environment
├── config.py # Game settings
└── plot_scores.py # Training graphs
👤 @Tismo
👤 @Alexis
👤 @J0lataupe