For the game Command & Conquer: Tiberium Alliances.
In game, there is a combat simulator. I want a script to cycle through every possible combat layout and return the layout with the best result (result is very clear, numerical stat returned).
There are already combat simulators written that work with Tampermonkey, etc. They can get the results of a specific simulation and combat layout, but not cycle through every permutation.
Examples are here:
[login to view URL]
[login to view URL]
[login to view URL]
Please mention if you have experience with browser userscripts and any quick thoughts on how you could accomplish the idea.
Potential for more work if it goes well