public bool ValidateDuplicateShotFired(Coordinates coordinates) { if (HitShots.Any(x => x.XCoordinate == coordinates.XCoordinate && x.YCoordinate == coordinates.YCoordinate) || MissedShots.Any(x => x.XCoordinate == coordinates.XCoordinate && x.YCoordinate == coordinates.YCoordinate)) { return(false); } return(true); }
public bool AddHitShot(Coordinates coordinates) { HitShots.Add(coordinates); return(true); }