static void Main() { // Create the evaluator DirectionalEvaluator evaluator = new DirectionalEvaluator(); // This should output "London"... Console.WriteLine(evaluator.Evaluate("london edinburgh manchester southerly")); // This should output "Aberdeen"... Console.WriteLine(evaluator.Evaluate ("london edinburgh manchester southerly aberdeen westerly")); Console.Read(); }
static void Main() { // Create the evaluator DirectionalEvaluator evaluator = new DirectionalEvaluator(); // This should output "London"... Console.WriteLine(evaluator.Evaluate ("london edinburgh manchester southerly")); // This should output "Aberdeen"... Console.WriteLine(evaluator.Evaluate ("london edinburgh manchester southerly aberdeen westerly")); Console.Read(); }