Пример #1
0
 public IRoutable NextStepFrom(Coord p)
 {
     var left = new Route(p.ToLeft, this.Probability);
     var right = new Route(p.ToRight, this.Probability);
     return new Fork(left, right);
 }
Пример #2
0
 public bool Equals(Route other)
 {
     if (ReferenceEquals(null, other))
     {
         return false;
     }
     if (ReferenceEquals(this, other))
     {
         return true;
     }
     return Equals(other.next, this.next) && other.probability.Equals(this.probability);
 }