public bool Equals(Cell otherCell) { return(IsAlive.Equals(otherCell.IsAlive) && PositionX.Equals(otherCell.PositionX) && PositionY.Equals(otherCell.PositionY)); }
public void setAlive(bool alive) { IsAlive.Equals(alive); }
public override bool Equals(object obj) { return(obj is Cell other && (X.Equals(other.X) && Y.Equals(other.Y) && IsAlive.Equals(other.IsAlive))); }