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); }
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); }