RL agent for "3 Tiles" game
Top 66.5% on sourcepulse
DI-sheep integrates Deep Reinforcement Learning (DRL) with the popular "3 Tiles" game, commonly known as "羊了个羊" (Yang Le Yang Le). It aims to develop AI agents capable of playing this challenging puzzle game, offering a platform for DRL research and application. The project targets AI researchers, developers, and enthusiasts interested in applying DRL to game-playing scenarios.
How It Works
The core of DI-sheep utilizes the DI-engine framework for DRL training. It implements a Proximal Policy Optimization (PPO) algorithm with an Actor-Critic neural network architecture built on PyTorch. The game itself is encapsulated as a gym-compatible environment, allowing standard DRL training pipelines. This approach leverages established DRL techniques to tackle the game's complexity, providing a structured way to train and evaluate AI agents.
Quick Start & Requirements
cd service && pip install -r requirement.txt && FLASK_APP=app.py flask run
(for human play) or FLASK_APP=agent_app.py flask run
(for human + AI play).cd ui && npm run build && npm run preview
.cd service && pip install -r requirement-train.txt && python3 -u sheep_ppo_main.py
.Highlighted Details
Maintenance & Community
The project is actively seeking contributions and community engagement via GitHub Issues and Pull Requests. Future updates are planned, focusing on algorithm tuning, model availability, and environment enhancements.
Licensing & Compatibility
DI-sheep is released under the Apache 2.0 license, which permits commercial use and integration with closed-source projects.
Limitations & Caveats
The online demo is currently under improvement. While pre-trained models are available, the project notes that the agents still have significant room for improvement. Future work includes exploring model-based RL and planning algorithms, as well as optimizing environment speed with JAX.
4 months ago
1 day