I really don’t know anything about programming.
Let me backtrack. The only thing I know about programming is the IF/THEN language of the TI-83 graphing calculator... although I did write several simple games for that device during high school, under the tutelage of a friend of mine who went on to work for both Google and Facebook.
Anyway.
It seems to me, to perhaps oversimplify, that the AI should be built with priorities, and its #1 priority should be to deal lethal damage to its opponent (me). To use the only programming language I know, IF I am at 3 health AND my block meter is low THEN its first move should always be to play berry blast on my life total, ending the game.
If could be that the programming for PvZ works in a much different way from the TI-83 that I don’t understand and/or is less straight forward. I appreciate this. But I bring it up to more qualified people than myself 1) in case this (“minimum necessary force”) is an easy change to make, and/or 2) to inquire why I am wrong, perhaps learning something.
Because when I play the AI, the above ^^ seems not to be how the AI operates... and frankly I don’t give a D about how much it “acts” like a “real” player.