Ejemplo n.º 1
0
        private bool WouldShotBeAWaste(Shot shot)
        {
            if (ShotHistory.Contains(shot))
            {
                return(true);
            }

            if (shot.Coordinates.X < 0)
            {
                return(true);
            }
            if (shot.Coordinates.X > 9)
            {
                return(true);
            }
            if (shot.Coordinates.Y < 0)
            {
                return(true);
            }
            if (shot.Coordinates.Y > 9)
            {
                return(true);
            }

            return(false);
        }