// Move to bottom public void MoveBottom() { var moved = ArrayTransform.RotateMatrix(Grid, true); moved = CollapseLeft(moved); Grid = ArrayTransform.RotateMatrix(moved, false); // transform GameTransforms from left direction to right TransformBottom(); }
// Move to right public void MoveRight() { var moved = ArrayTransform.FlipVertical(Grid); moved = CollapseLeft(moved); Grid = ArrayTransform.FlipVertical(moved); // transform GameTransforms from left direction to right TransformRight(); }