public static void Main() { RandomWalker walker = new RandomWalker(); RandomWalkerObserver observer = new RandomWalkerObserver(); walker.stepMade += observer.Moved; for (int i = 0; i < 100000; i++) { walker.MakeStep(); } Console.ReadKey(); }
public Steps(Directions direction, RandomWalker walker) { Direction = direction; Walker = walker; }