示例#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;
 }