rem: for(var j = 0; j < 8; j++) if(!this.stacks[j].hasChildNodes()) score -= MOD3_EMPTY_PILE; 
add: for(var j = 0; j != 8; j++) if(!this.piles[j].hasChildNodes()) score -= MOD3_EMPTY_PILE; 
context:   getScoreFor: function(action) {    var score = 0;    if(action.action=="dealt-from-stock") {      // how many empty piles are we going to fill?      for(var j = 0; j < 8; j++)        if(!this.stacks[j].hasChildNodes()) score -= MOD3_EMPTY_PILE;      return score;    }    // it's a MoveAction    var card = action.card, source = action.source, destination = action.destination;    // if the user dragged+dropped the card then the source isn't the card's parent node, but if they    // right-clicked it then it will be.    var notInSource = card.parentNode!=source;    if(source.isFoundation) {      if(notInSource ? this.canMoveTo(card,source) : source.baseCardInPlace()) score -= MOD3_CARD_IN_PLACE;    } else {      if(notInSource ? !source.hasChildNodes() : !card.previousSibling) score += MOD3_EMPTY_PILE;    }    if(destination.isFoundation) score += MOD3_CARD_IN_PLACE;    else if(!destination.hasChildNodes()) score -= MOD3_EMPTY_PILE;    return score;  }
meta: 3385	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3385/15f3df693ddf02fb9ee6a2662189220868368b23/mod3.js/buggy/mod3.js