rspeer / dominiate

A simulator for Dominion card game strategies
http://rspeer.github.com/dominiate
MIT License
121 stars 43 forks source link

Simulator never plays Lookout #85

Closed chadeos closed 9 years ago

chadeos commented 9 years ago

in makeCard "Lookout",

  ai_playValue: (state, my) ->
    if state.gainsToEndGame >= 5 or state.cardInfo.Curse in my.draw
      895
    else
      -5

It should say

    if state.gainsToEndGame() >= 5 or state.cardInfo.Curse in my.draw

since state.gainsToEndGame is a function. Source

rspeer commented 9 years ago

Fixed! Thanks for the bug report. I'll see if I can get to more of these as well.