Battlegrounds Battle Resimulation - Zero-to-Heroes/firestone GitHub Wiki

What is it?

After a battle or after the game, you can now head to the "Battles" tab view all your past battles. There, you can reorder the minions on your (or your opponent's) board, and re-trigger a simulation to help you find out what the optimal placement would have been.

On wider window sizes, it also shows the average damage and lethal chances, in additional to the base win/tie/loss chances.

Limitations

When I hit "Simulate" several times in a row it gives a different result every time!

The simulator uses random number generation to decide on situations where multiple outcomes are possible (who attacks first, what minion is attacked, what minion spawns from a deathrattle, etc.). Therefore, on more complex boards, simulations can have different outcomes from time to time, even when doing a big number of simulations (always 10,000 on the re-simulation screen).

As such, you usually can't really compare two positions when the difference is only a couple of %/

Known bugs / missing features

Hero powers are not handled yet. This means that for targeted hero powers, like the Lich King, you can't choose another target.

Al'akir's hero power is also not properly supported yet. The simulator assumes that the divine shield + windfury info comes from the board state itself, so if you move your leftmost minion the buff will be reapplied. I plan on solving this in a future update.

There is for now no way to set the number of simulations (it is always 10,000). This as well might be added in a future update.