 
 makeCard 'Silk Road', c.Estate, {
   cost: 4
-  getVP: (state) -> Math.floor(state.current.countCardTypeInDeck('Victory') / 4)
+  getVP: (player) -> Math.floor(player.countCardTypeInDeck('Victory') / 4)
 }
 
 # Revealing Tunnel for Gold as it is discarded is automatic.


makeCard 'Gardens', c.Estate, {
  cost: 4
  getVP: (state) -> Math.floor(state.current.getDeck().length / 10)
}

makeCard 'Great Hall', c.Estate, {


makeCard 'Duke', c.Estate, {
  cost: 5
  getVP: (player) -> player.countInDeck('Duchy')
}

makeCard 'Fairgrounds', c.Estate, {
  cost: 6
  getVP: (player) ->
    unique = []
    deck = player.getDeck()
    for card in deck
      if card not in unique
        unique.push(card)
