Esempio n. 1
0
 private void GetRight()
 {
     if (Math.Max(Math.Max(currentFigure.PosFirstX, currentFigure.PosSecondX),
                  Math.Max(currentFigure.PosThirdX, currentFigure.PosQuadrupleX)) < board.GetLength(0) - 1 &&
         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.GetRight();
     }
 }