Example #1
0
        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();
        }
Example #2
0
 public Steps(Directions direction, RandomWalker walker)
 {
     Direction = direction;
     Walker = walker;
 }