by ReflectedImage · 5y ago · 0 comments
I recalled back to my PhD work on solving acquisition problems using generic algorithms and realized I could actually do it. One covid year later and I've almost finished it.
You give it the champion, the play style and divide up the abstract stats like Damage, Effective Health, Gap Close, etc... and the genetic algorithm gives an optimized build order for it.
The site is backed by ~450,000 pre-computed build orders, which took a week to generate on a 32 core box.
I've been talking to some challenger (really good) players and got a list of things that needed to be done. Basically being able to change the various options used by the model and being able to override runes/items.
Since it wouldn't be practical to run the whole genetic algorithm in a web browser, I've implemented a hill climber, which runs in the web browser, that accepts the output of the genetic algorithm, the user requested changes and then it hill climbs the build order back to the local optima.
The genetic algorithm was written in Kotlin (compiled to JVM) so I used Kotlin's compile to Javascript to create the web based hill climber.
I've also implemented guides so you save the builds you find from the optimizer. You can login as guest/guest.
Build Orders: https://www.lolsolved.gg/builds/ Technical Explanation: https://www.lolsolved.gg/about User Guide: https://www.lolsolved.gg/help
I'm sticking around so feel free to ask questions.
Assuming you have robust mutations, were you able to discover any new novel (and effective) builds not previously known?
Are they effective is a good question, basically that needs lots of play testing by real players. I've added guides so people can tell other people about good builds they have found.
So when developing it, I took some existing builds from the internet and I broke them down into a ratio of stats aka (1 damage: 1.5 cooldown (now AH): 1.2 late game health) and then had the GA reconstruct those builds from the ratios.
On the builds being played by the pros created by professional analysts, I got back very similar looking builds. On random builds from site like mobafire I got back completely different builds.
Thinking back, when Cloak of Agility was briefly buffed last year, it came back with the exact amount of them to spam and exactly when to do it. It took 10 minutes and the player base took 3 weeks to work it out.
If you modeled team composition, it may be possible to even model pick-ban phase via min-max search. A full exhaustive search would be computationally impossible, but you could approximate it AlphaGo style with a neural network estimator + Monte Carlo tree search. You may be able to sell such software to professional teams.
Pick-ban phase optimization already exists at least for Dota 2.
So the original team of 5 went with Dota 2 because it has a much better API they could get game data from. They poured the Dota 2 pro games into a neural network to create a build generator.
It couldn't make sense of the input data. Apparently Dota 2 pro players are trolls according to my ex co-worker.
I didn't work on it so I don't really know.
It doesn't affect my method since I'm taking in descriptions of the items, runes and champions and putting together the builds from scratch without looking at gameplay. It needs a couple of tweaks such as stating the average combat length for champions.
A lot of the core is there but there’s less champs, runes, items.
(Currently on a pro team for wild rift and since the game is relatively new this would be more useful to us)