I often tend to buy Duchies at 4 instead of 5 and was wondering how that simulated. Interestingly it improved on BankWharf in Province games and Colony games (though only very slightly in Colony games). It did not improve the DoubleJack algorithm.
# Play Big Money including Banks, except buy Wharf with every $5 buy.
# This differs from Geronimoo's BankWharf in that Duchies are bought
# when there are only 4 Provinces left, instead of when there are only 5 left.
{
name: 'BankWharfD4'
author: 'Jorbles'
requires: ['Bank', 'Wharf']
gainPriority: (state, my) -> [
"Colony" if my.countInDeck("Platinum") > 0
"Province" if state.countInSupply("Colony") <= 6
"Duchy" if state.gainsToEndGame() <= 4
"Estate" if state.gainsToEndGame() <= 2
"Platinum"
"Bank"
"Gold"
"Wharf"
"Silver"
"Copper" if state.gainsToEndGame() <= 3
]
}