grousewood-games / solforge

Solforge - Mimicwurm Edition
1 stars 2 forks source link

AI Performance #94

Open james-rae opened 1 year ago

james-rae commented 1 year ago

Identify areas of inefficient code that get hit repeatedly when the AI does simulations.

Initial ideas

james-rae commented 1 year ago

v0.7.3 will skip duplicate analysis of multiple copies of the same card in hand.

It also fixes a counting problem for free plays. If you got a "play a free spell" type bonus, and had 3 spells in hand, the AI would think you had 3 free plays. The correct number is 1 free play.