myBoris/wzry_ai

人工智能模型玩王者荣耀

What it solves

This project provides an AI model designed to play the game Honor of Kings (Wangzhe Rongyao), automating gameplay through machine learning.

How it works

The system uses an ONNX model as a base, which can be further trained using a provided script (train.py) to generate a PyTorch model (wzry_ai.pt). It interacts with the game by mapping specific screen coordinates (X, Y percentages) to game controls, which can be configured via a position-finding tool (showposition.py) and an argument parser file.

Who it’s for

Developers and AI enthusiasts interested in game automation and reinforcement learning within the context of mobile gaming.

Highlights

  • Automated training pipeline for generating game-playing models.
  • Support for both real devices and emulators.
  • Customizable key mapping and screen position configuration to ensure control accuracy across different screen resolutions.

Related

  • Project
  • Project
  • Project
  • Project
  • Dispatch