 
 makeCard 'Duke', c.Estate, {
   cost: 5
-  getVP: (state) -> state.current.countInDeck('Duchy')
+  getVP: (player) -> player.countInDeck('Duchy')
 }
 
 makeCard 'Fairgrounds', c.Estate, {
   cost: 6
-  getVP: (state) ->
+  getVP: (player) ->
     unique = []
-    deck = state.current.getDeck()
+    deck = player.getDeck()
     for card in deck
       if card not in unique
         unique.push(card)

  getCoins: (state) -> this.coins
  getBuys: (state) -> this.buys
  getTrash: (state) -> this.trash
  getVP: (state) -> this.vp
  
  # getPotion says whether the card provides a potion. There is only one
  # card for which this is true, which is Potion.

makeCard 'Vineyard', c.Estate, {
  cost: 0
  costPotion: 1
  getVP: (player) -> Math.floor(player.numActionCardsInDeck() / 3)
}

# Kingdom Treasure cards
