MassNE: Exploring Higher-Order Interactions with Marginal Effect for Massive Battle Outcome Prediction
Source code and dataset of MassNE (the 2023 Web Conference paper).
In this work, we study how to model interactions between massive units for predicting battle outcomes, and explore the diminishing marginal utility of massive units.
- mpmath
- trueskill
- numpy
- pandas
- torch
python train.py
We used the simulator from https://github.com/jgs03177/sc2combatsim to simulate the combat.
We made some modifications to the original simulator so that it can read the lineup data generated by python.
- Both ground units and air units are included. We excluded some magic units, since the AI sometimes doesn't control these units correctly.
- To simulate a battle, we randomly sample an amount of resources, and the resources of the two teams are the same. Training a combat unit cost the minerals and vespene gas. For simplicity, we assume one vespene gas is equivalent to two minerals.
- The races (i.e., Terran, Zerg, Protoss) of the two teams are randomly chosen. We use the Dirichlet distribution to determine the proportion of resources allocated to each squad.