context: FreeCell.movePossible = function(card,target) {  // count spaces  var spaces = 0;  for(var i = 0; i < 8; i++) if(!this.stacks[i].hasChildNodes()) spaces++;  // count free cells  var cells = 0;  for(var i = 0; i < 4; i++) if(!this.cells[i].hasChildNodes()) cells++;  // this is the number we can move using the most complex algorithm  var numCanMove = (cells+1) * (1 + parseInt(spaces * (spaces + 1) / 2));  // count number of cards to move  var numToMove = 0;  for(var next = card; next; next = next.nextSibling) numToMove++;  //  return numToMove<=numCanMove;}
meta: 3385	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3385/916061f4fa119a0a46876629bfe8719e0f0023ec/freecell.js/buggy/freecell.js