Skip to content
프로젝트

소개

An AI DL model that learns how to play Clash Royale.

AI 및 머신러닝

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
+2
in 7 days
+19
in 15 days
+35
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

ClashAI

A research project that trains a Clash Royale agent for the X-Bow control deck ("icebow") in a fast simulator. It starts from imitation learning on professional replays and improves with self-play reinforcement learning. Not affiliated with or endorsed by Supercell.

Results are in RESULTS.md.

What is here

Path What it is
pipeline/ Observation contract, imitation dataset and model, PPO trainer (rl_royale.py), evaluation (e1_eval.py), scoring and gates.
icebow/, hogeq/ Deck configuration, card data and the small clashrl helper package.
tools/ Public replay download and dataset helpers.

Simulator

The code in this repository trains and evaluates on the public RoyaleSim package. Some models in RESULTS.md were trained with other engines, which are not part of this repository.

In this code the observation holds only what a player can see. The opponent's hand, next card and elixir are never fed to a model; opponent elixir is estimated from public events (pipeline/opp_elixir_count.py).

Running

These steps have not been tested on a clean install.

python -m venv .venv && .venv/Scripts/pip install -r requirements.txt
export ROYALE_RUNTIME=unpinned-linux   # the RoyaleSim and RoyaleGym installed in this venv

# reinforcement learning on the simulator: --smoke runs a tiny check, key=value overrides pipeline/rl_royale.yaml
python -m pipeline.rl_royale --config pipeline/rl_royale.yaml --run smoke --smoke

# paired evaluation of a checkpoint
python -m pipeline.e1_eval --help

Checkpoints and datasets are not in this repository, so training needs an initial checkpoint and a replay pool of your own (see the init and pool keys in pipeline/rl_royale.yaml). tools/ downloads a public replay set.

관련 프로젝트 살펴보기

불러오는 중…