rem: var i, last; for(i = 0; i != 10; i++) { last = this.piles[i].lastChild; if(last && this.sendToFoundations(last)) return true; } for(i = 0; i != 4; i++) { last = this.cells[i].firstChild; if(last && this.sendToFoundations(last)) return true; 
add: var lookedForAces = false; for(var i = 0; i != 4; i++) { var f = this.foundations[i]; if(f.hasChildNodes()) { var c = f.lastChild.up; if(c && this.canMoveCard(c)) return this.moveTo(c, f); } else if(!lookedForAces) { lookedForAces = true; for(var j = 0; j != 4; j++) { var a = this.aces[j]; if(!a.parentNode.isFoundation && !a.nextSibling) return this.moveTo(a, f); } } 
context:   autoplayMove: function() {    var i, last;    for(i = 0; i != 10; i++) {      last = this.piles[i].lastChild;      if(last && this.sendToFoundations(last)) return true;    }    for(i = 0; i != 4; i++) {      last = this.cells[i].firstChild;      if(last && this.sendToFoundations(last)) return true;    }    return false;  },
meta: 3385	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3385/fb224f305a537954c670bd1fa2ea01804178da01/towers.js/clean/towers.js