示例#1
0
        /// <summary>
        /// CheckBottom
        /// </summary>
        /// <returns></returns>
        private bool CheckBottom()
        {
            if (Pieces.Max(p => p.Y) + Y >= 18)
            {
                return(true);
            }

            foreach (TetrisPiece tetrisPiece in Pieces)
            {
                if (PieceTombes.Any(p => p.X == tetrisPiece.X + X && p.Y == tetrisPiece.Y + Y + 1))
                {
                    return(true);
                }
            }

            return(false);
        }