function actionDown() {
  currentShape.currentY--;
  var oldCoords = currentShape.coords;
  currentShape.coords = moveCoords(currentShape.coords, 0, -1);
  if (currentShape.isCollided()) {  // Oops, abort.
    currentShape.coords = oldCoords;
    currentShape.currentY++;
    return;
  }
  currentShape.addTransform(true);
  currentShape.checkSurfaced();
  printDebug();
}
// Move the current shape down one row.
Move the current shape down one row.
Move the current shape down one row .
function actionDown() {
  currentShape.currentY--;
  var oldCoords = currentShape.coords;
  currentShape.coords = moveCoords(currentShape.coords, 0, -1);
  if (currentShape.isCollided()) {  
    currentShape.coords = oldCoords;
    currentShape.currentY++;
    return;
  }
  currentShape.addTransform(true);
  currentShape.checkSurfaced();
  printDebug();
}
function actionDown ( ) { currentShape . currentY -- ; var oldCoords = currentShape . coords ; currentShape . coords = moveCoords ( currentShape . coords , 0 , - 1 ) ; if ( currentShape . isCollided ( ) ) { currentShape . coords = oldCoords ; currentShape . currentY ++ ; return ; } currentShape . addTransform ( true ) ; currentShape . checkSurfaced ( ) ; printDebug ( ) ; }
Move the current shape down one row.
Move the current shape down one row .
// Oops, abort.