Card-Forge / forge

An unofficial rules engine for the world's greatest card game.
https://card-forge.github.io/forge/
GNU General Public License v3.0
945 stars 548 forks source link

AI doesn't cast Skullcrack while the player has more than 10 hp #6015

Open MorihiroS opened 1 month ago

MorihiroS commented 1 month ago

Describe the bug AI doesn't cast Skullcrack while the player has more than 5 lifes. AI just keeps the card in its hand and waits.

To Reproduce Steps to reproduce the behavior:

  1. Player has 6+ lifes
  2. AI has 2+ untapped Mountain on the battlefield and Skullcrack in hands
  3. AI doesn't cast Skullcrack

Expected behavior AI should cast Skullcrack, especially in response to spells that prevent damage or give protection from damage

Additional context AI should take into account the Prowess trigger of its creatures

Desktop OS: Windows 10 Java Version: 1.8.0_202-b08 Forge Version: 1.6.64-SNAPSHOT-08-28

Screenshots

burn1 burn2 burn3 skull1

MorihiroS commented 2 weeks ago

I don't understand the logic of the AI, sometimes it holds it in its hand and sometimes it casts it....

skull2

tool4ever commented 2 weeks ago

Plenty of AI decision have a randomness factor so the human can't anticipate all its moves too easily...

MorihiroS commented 2 weeks ago

Plenty of AI decision have a randomness factor so the human can't anticipate all its moves too easily...

But not an aggressive burn is a losing burn.....