public void Reset() { IsValid = false; ShipsByOccupationPoints.Clear(); foreach (var shipList in m_ShipsByLength.Values) { shipList.Clear(); } }
private bool ShipOverlaps(Ship ship) { return(ship.Occupies.Any(p => ShipsByOccupationPoints.ContainsKey(p))); }