https://github.com/brauxo/ai_plays_touhou_6
https://github.com/brauxo/ai_plays_touhou_6
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/brauxo/ai_plays_touhou_6
- Owner: Brauxo
- Created: 2025-02-23T15:39:07.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2025-02-23T18:40:43.000Z (3 months ago)
- Last Synced: 2025-02-23T19:34:37.346Z (3 months ago)
- Language: Python
- Size: 1.09 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# AI_plays_Touhou_6
[Project in work]
This project trains a Deep Q-Network (DQN) agent to play *Touhou 6: Embodiment of Scarlet Devil*
Made by Brauxo in february 2025
## Features
- **Screen Capture**: Captures the game window using `mss` and processes it with OpenCV.
- **Input Control**: Simulates key presses with `pydirectinput`
- **Game Over Detection**: Uses template matching to detect the "Game Over" screen and restart automatically with a simpel script.
- **DQN Training**: Implements a DQN with TensorFlow to learn optimal actions.## Requirements
- Python 3.9