public override bool Equals(object obj) { if (!(obj is State item)) { return(false); } return(KeysCollected.Count == item.KeysCollected.Count && !KeysCollected.Except(item.KeysCollected).Any()); }
public override bool Equals(object obj) { if (!(obj is BigState item)) { return(false); } return(KeysCollected.Count == item.KeysCollected.Count && !KeysCollected.Except(item.KeysCollected).Any() && CurrentPositions.Count == item.CurrentPositions.Count); }