Permalink
Switch branches/tags
Nothing to show
Commits on Jun 3, 2012
  1. avoid infinitely long games, by both improving the getTotalMoney chec…

    …k and adding a fake game-ending condition
    committed Jun 3, 2012
Commits on May 28, 2012
  1. added aiPlayValue to all actions

    committed May 28, 2012
Commits on May 27, 2012
  1. Merge branch 'master' into aiplayvalue

    Conflicts:
    	basicAI.coffee
    	cards.coffee
    committed May 27, 2012
  2. use local copy of lessc

    committed May 27, 2012
Commits on Apr 5, 2012
  1. Merge pull request #75 from strayjohno/patch-1

    Typo in required cards (RoyalBigMoney strategy)
    committed Apr 5, 2012
  2. Typo in required cards

    strayjohno committed Apr 5, 2012
Commits on Feb 19, 2012
  1. add Golem to play priority order

    committed Feb 19, 2012
Commits on Feb 14, 2012
  1. Merge pull request #73 from bilts/fix-buy-causes-loss-performance

    Improve performance of checking whether a buy causes a loss
    committed Feb 14, 2012
  2. Merge pull request #72 from bilts/fix-trader

    Mark Trader as a reaction card
    committed Feb 14, 2012
  3. Improve performance of checking whether a buy causes a loss

    Before cloning the game state, we first check to see if buying the
    card in question would cause a pile to empty, and whether the current
    player would be in the lead after gaining it.  This cuts the total
    Dominiate execution time nearly in half.
    bilts committed Feb 14, 2012
  4. Mark Trader as a reaction card

    bilts committed Feb 14, 2012
Commits on Jan 26, 2012
  1. Fix the no-suicide rule when it goes two levels deep; it was permanen…

    …tly changing its hypothetical game state and blaming every single card for losing the game.
    committed Jan 26, 2012
  2. Merge pull request #69 from bilts/fix-59-array-prototype

    Prevent Array.prototype.toString from interfering with other modules
    committed Jan 26, 2012
Commits on Jan 25, 2012
  1. Changed Output

    Daniel committed Jan 25, 2012
Commits on Jan 20, 2012
  1. Prevent Array.prototype.toString from interfering with other modules

    The CoffeeScript compiler depends on the output from Array::toString
    being formatted in a specific way.  Our changes, which wrapped the
    output in square brackets, were causing the CoffeeScript compiler to
    double-wrap some arrays (particularly the ones returned by player
    strategies).
    
    This commit makes it so that the change to Array::toString is applied
    when the program enters Dominiate's top-level API methods and is
    reverted when program control leaves those methods.
    
    Fixes #56
    Fixes #59
    bilts committed Jan 20, 2012
  2. Merge pull request #68 from bilts/performance

    Turn slow mode into fast mode
    committed Jan 20, 2012
  3. Merge pull request #66 from bilts/fix-21-game-state

    Move card-specific game state into card definitions
    committed Jan 20, 2012
  4. Merge pull request #63 from bilts/fix-53-courtyard

    Fix Courtyard's choice of card to put back on deck
    committed Jan 20, 2012
  5. Merge pull request #60 from bilts/scheme

    Implement Scheme
    committed Jan 20, 2012
  6. Merge pull request #62 from bilts/coffeescript-1.2.0-compat

    Fix CoffeeScript 1.2.0 incompatibility issues
    committed Jan 20, 2012
  7. Turn slow mode into fast mode

    This Fixes several major UI inefficiencies:
    
     * playWeb.coffee triggered output updates that were being suppressed by play.html
       I removed these.  The output updates less frequently and is completely
       controlled by play.html.  Eventually, all of the CoffeeScript in play.html should
       be merged with playWeb.coffee, but that's a different issue.
     * We were calling zeroTimeout very frequently.  zeroTimeout is fast, but not
       free.  We now call it approximately 4 times a second, enough to keep the browser
       from timing out, but not enough to cause noticeable performance overhead.
     * We had released control back to the browser based on the number of games played.
       We also updated the graphs based on the number of games played.  Doing this
       way, we needed to be pessimistic about AI and browser performance.  We now
       release control when a game is over and we've had control for more than .25s.
     * We were updating the DOM whenever we added a page to the log, even when we
       updated "quietly" because we updated the paginator.  We now detect if the
       pagination has changed before updating it.
    
    Combined, these changes allow the "slow mode" simulations to run nearly as fast
    as the fast mode.  In Firefox, the UI updates in slow mode cause about 10%
    runtime overhead.  Because of this, I removed the fast mode checkbox.
    
    Fixes #23
    bilts committed Jan 20, 2012
  8. Log the time spent playing

    bilts committed Jan 20, 2012
Commits on Jan 18, 2012
Commits on Jan 17, 2012