magefree / mage

Magic Another Game Engine
http://xmage.today
MIT License
1.86k stars 761 forks source link

AI Decision Making/Errors #7749

Open LegionedintheDamned opened 3 years ago

LegionedintheDamned commented 3 years ago

AI I believe is primarily meant for practice games and not actual challenge. However, there are a few mistakes the AI repeatedly makes that are problematic.

  1. Arbitrary game loss. When more than 1 human player is in a game, a randomly remaining AI or human player will be declared winner shortly after the first human player loses. I have had this happen dozens of times, it is easily repeatable. https://www.slightlymagic.net/forum/viewtopic.php?f=70&t=30165&p=246797#p246797

  2. AI will sacrifice any and all permanents to avoid any damage or life loss, regardless of the value of that permanent. Primary examples are Torment of Hailfire and Mogis God of Slaughter. https://www.slightlymagic.net/forum/viewtopic.php?f=70&t=30246&start=45#p247941

  3. AI will not block if it means game loss, it strictly uses the power/toughness calculation. This includes infect damage, commander damage, or permanents that say "lose the game" such as Phage the Untouchable. https://www.slightlymagic.net/forum/viewtopic.php?f=70&t=30165&p=246777#p246777

  4. AI will choose unplayable possibilities. For example, Hall of Gemstones requires you to pick a colour and then you only produce that colour for the turn. AI will pick at random. Other examples include https://gatherer.wizards.com/Pages/Search/Default.aspx?text=+%5B%22choose%20a%20creature%20type%22%5D. In these creature type cases it will not consider the highest density in the deck, but instead the first type on a commander card or the most cards on the battlefield. https://www.slightlymagic.net/forum/viewtopic.php?f=70&t=30165&p=247020#p247020

  5. As noted in other posts, AI will pick numbers greater than life total such as Wheel of Mistfortune. I would have to check, but I bet the same would be true of cards like Choice of Damnations.

  6. EDIT ADD: Computer cannot discern cards that adjust the power/toughness equation such as High Alert, Assault Formation, Arcades the Strategist or Doran the Siege Tower.

If I am not using this service incorrectly, please let me know. I figured if I start to put pieces together perhaps posting here would be more effective than the forum.

JayDi85 commented 3 years ago

AI uses random value in number selection dialogs (e.g. place the bet in [[Wheel of Misfortune]] #7745). It's a bad approach and must be fixed by code (developer must implement some logic and use non random value).

So all cards with possible bad/loose choices must be fixed.

github-actions[bot] commented 3 years ago

Wheel of Misfortune - (Gatherer) (Scryfall) (EDHREC)

{2}{R} Sorcery Each player secretly chooses a number 0 or greater, then all players reveal those numbers simultaneously and determine the highest and lowest numbers revealed this way. Wheel of Misfortune deals damage equal to the highest number to each player who chose that number. Each player who didn't choose the lowest number discards their hand, then draws seven cards.

MorihiroS commented 1 year ago
3. AI will not block if it means game loss, it strictly uses the power/toughness calculation.  This includes infect damage, commander damage, or permanents that say "lose the game" such as Phage the Untouchable.

This is still relevant. Many testing or relaxing games with AI look bad because of this.

  1. EDIT ADD: Computer cannot discern cards that adjust the power/toughness equation such as High Alert, Assault Formation, Arcades the Strategist or Doran the Siege Tower. This is also still relevant. Decks with "doran" effects can't be testing with AI.