function actionMove(right) {
  var dx = right ? 1 : -1;
  var oldCoords = currentShape.coords;
  currentShape.coords = moveCoords(currentShape.coords, dx, 0);
  currentShape.currentX += dx;
  if (currentShape.isCollided()) {  // Oops, abort.
    currentShape.coords = oldCoords;
    currentShape.currentX -= dx;
    return;
  }
  currentShape.addTransform(true);
  currentShape.checkSurfaced();
  printDebug();
}
// Move the current shape right or left one column.
Move the current shape right or left one column.
Move the current shape right or left one column .
function actionMove(right) {
  var dx = right ? 1 : -1;
  var oldCoords = currentShape.coords;
  currentShape.coords = moveCoords(currentShape.coords, dx, 0);
  currentShape.currentX += dx;
  if (currentShape.isCollided()) {  
    currentShape.coords = oldCoords;
    currentShape.currentX -= dx;
    return;
  }
  currentShape.addTransform(true);
  currentShape.checkSurfaced();
  printDebug();
}
function actionMove ( right ) { var dx = right ? 1 : - 1 ; var oldCoords = currentShape . coords ; currentShape . coords = moveCoords ( currentShape . coords , dx , 0 ) ; currentShape . currentX += dx ; if ( currentShape . isCollided ( ) ) { currentShape . coords = oldCoords ; currentShape . currentX -= dx ; return ; } currentShape . addTransform ( true ) ; currentShape . checkSurfaced ( ) ; printDebug ( ) ; }
Move the current shape right or left one column.
Move the current shape right or left one column .
// Oops, abort.