grousewood-games / solforge

Solforge - Mimicwurm Edition
1 stars 2 forks source link

Hunt down weird bot behavior #158

Open james-rae opened 9 months ago

james-rae commented 9 months ago

Track down why the bot makes certain bad plays.

Most common is this:

  1. Active friendly is going to fight passive enemy and lose. But will reduce enemy creature health.
  2. Bot replaces the friendly with another friendly (sleeping).

Doesn't make sense, the friendly board state is the same but enemy board state is better (compared to letting the creature fight & die, then forge new creature after battle). So probably a mistake in the number grinder.

Rarer & worse case:

Bot replaced a healthy Korok when there was open lanes. Made no sense at all. Replacing creature was Relic Scout, so maybe something with it's "replace me" flag is doing backwards math?

james-rae commented 8 months ago

Another: open lane creature. Enrage was only good card left in hand. Bot chose to battle first then cast Enrage. Was not a rounding/cutoff issue either; battle was weighted 0.1 higher. Nonsense.

Edit: was new bug, squashed in v0.10.5