예제 #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
파일: RWEvent.cs 프로젝트: Rabidgeek/CIS23
 public RWEvent(Directions direction, RandomWalker walker)
     : this()
 {
     Direction = direction;
     Walker = walker;
 }