rem: Mod3.canMoveToFoundation = function(card, stack) { if(card.parentNode == stack) return false;  if(!stack.hasChildNodes()) return (card.row==stack.row && card.rowNum===0);  var last = stack.lastChild; return (card.isSameSuit(last) && card.number()==last.number()+3 && stack.baseCardInPlace()); }; 
add: canMoveToFoundation: function(card, stack) { if(card.parentNode == stack) return false;  if(!stack.hasChildNodes()) return (card.number()==stack.baseNumber); var last = stack.lastChild; return (card.isSameSuit(last) && card.number()==last.number()+3 && stack.baseCardInPlace()); }, 
context: Mod3.canMoveToFoundation = function(card, stack) {  if(card.parentNode == stack) return false;  // row 2 has 2,5,8,J in it,  row 3 has 3,6,9,Q,  row 4 has 4,7,10,K  if(!stack.hasChildNodes()) return (card.row==stack.row && card.rowNum===0);//  if(!stack.hasChildNodes()) return (card.number()==stack.baseNumber);  var last = stack.lastChild;  return (card.isSameSuit(last) && card.number()==last.number()+3 && stack.baseCardInPlace());};
meta: 3385	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3385/16cf1285aa3c691e959e2aabb4cbf0501cad4a97/mod3.js/buggy/mod3.js