/// <summary> /// if tetromino can turnForward /// </summary> /// <returns></returns> public bool checkRotation() { tetromino.turnForward(); foreach (Point P1 in tetromino.figureOnBoard) { if (P1.X >= 0 && P1.Y < pictureBox1.Height && P1.X < pictureBox1.Width) { foreach (Point point in pL) { if (point.Equals(new Point(P1.X, P1.Y))) { tetromino.turnBackwards(); return(false); } } } else { tetromino.turnBackwards(); return(false); } } tetromino.turnBackwards(); return(true); }