Exemplo n.º 1
0
 private void GetLeft()
 {
     if (Math.Min(Math.Min(currentFigure.PosFirstX, currentFigure.PosSecondX),
                  Math.Min(currentFigure.PosThirdX, currentFigure.PosQuadrupleX)) > 0 &&
         board[currentFigure.PosFirstX - 1, currentFigure.PosFirstY] != 1 &&
         board[currentFigure.PosSecondX - 1, currentFigure.PosSecondY] != 1 &&
         board[currentFigure.PosThirdX - 1, currentFigure.PosThirdY] != 1 &&
         board[currentFigure.PosQuadrupleX - 1, currentFigure.PosQuadrupleY] != 1)
     {
         currentFigure.GetLeft();
     }
 }