Пример #1
0
        public static void IwasTheMain()
        {
            RandomWalker walker = new RandomWalker();
            RandWalkObserver observer = new RandWalkObserver();

            walker.AddObserver(observer);

            for (int i = 0; i < 100000; i++)
            {
                walker.MakeStep();
            }

            Console.ReadKey();
        }
Пример #2
0
 public RWEvent(Directions direction, RandomWalker walker)
     : this()
 {
     Direction = direction;
     Walker = walker;
 }