← 开源
vietnh1009

Tetris-deep-Q-learning-pytorch

Deep Q-learning for playing tetris game

Model DevelopmentReinforcement LearningPython
在 GitHub 打开
增长势头
+024 小时新增 Star0.0%
531
Star
117
Fork
+1
本周
1
贡献者
创建于 2020-03-29 · 更新于 2026-10-12 · 今日第 17625 名
主要开发者
README

[PYTORCH] Deep Q-learning for playing Tetris

Introduction

Here is my python source code for training an agent to play Tetris. It could be seen as a very basic example of Reinforcement Learning's application.

Tetris demo

The demo could also be found at youtube demo

How to use my code

With my code, you can:

  • Train your model from scratch by running python train.py
  • Test your trained model by running python test.py

Trained models

You could find my trained model at trained_models/tetris

Requirements

  • python 3.6
  • PIL
  • cv2
  • pytorch
  • numpy
  • matplotlib
排名相邻
同类项目