Jorbles/dominiate — comment on commit 36684e5de2d32a7d92eea93d04c3e4f03380885c
File:  line 0
By rspeer:

That looks right to me. Reusing the existing putOnDeck code makes sense. I suspect from the way it plays Courtyard that our putOnDeck code is actually terrible, but that can be fixed and it'll improve all the cards that use it.

I'll test it, of course.

The decision for what to discard from Goons or Militia is called as state.current.ai.choose('discard', ...). It's defined using the "discardValue" and "discardPriority" methods in basicAI.coffee.