I faced a 4/9 Grommash Hellscreem, whitch was not enraged yet. The bot chose to Rockbiter->attack with Doomhammer twice to kill it. The hero took 14 damage. Tempo wise it is fine, to trade some HP vs killing a minion, but taking 14 is way too much. So maybe you can set a rule to not do it if the hero is gonna take e.g. >8 in total or sth. You can find the logfile here It was on turn 16. Edit: I have written some penalties for those cases. You can find it here and the raw code here ,but I think there should be another, much better way to set this up properly.
Enemy: Warrior, 29hp, Grommash 4/9 on the board, 4 cards in hand. You: Shaman, 23hp, 3 minions 1/1 on the board, 2 cards in hand (Doomhammer and Rockbiter Weapon). Did you have another choice?
I understand your argument, but I think taking that much damage is a game losing play against almost all matchups. Grom was not enraged - I would just go face with everything and hope for a good topdeck(like Lava Burst or Flametongue etc.) to kill it in one hit. If thats not happenning I'll lose the game anyway, but I would not thow it away in first place. That's why I wrote my code like that: If you cant't deal with a minion without losing x% of health, do something else(and hope for a better play next turn).
It's an isolated case. For an informed decision, we need other logs with the same problem. Attach them here, please.
Unfortunately, I don't have any more because I edited the code right after this play happened. But maybe some other forum users have, "Iso" was posting some misplays yesterday here: https://www.thebuddyforum.com/hearthbuddy-forum/268260-bad-moves.html. Maybe there is something similar.