How the Mushroom Wars 2 Bot Forecasts Battles and Tunes Its Difficulty
The developers explain that building a fun opponent in this RTS is harder than building an unbeatable one. Their bot relies on weighted scoring in the spirit of Utility AI, but adds forecasting so it predicts future unit counts instead of reacting only to the current state. The key tool estimates how many units a building will hold after some time, accounting for production and capacity limits, and the same idea applies to chasing fleeing enemies that regenerate health. When judging an attack, the bot also estimates how many defenders nearby buildings can send in time, and this forecasting is called many times per decision, so it is kept pure and lightweight. The post includes a code sketch of this production-and-reinforcement logic, and the team says difficulty is tuned so players don't feel the bot is deliberately throwing the game.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in