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