Esempio n. 1
0
        public static void RunTests()
        {
            Console.WriteLine(Environment.NewLine + "Testing RandomWalker (Java way)");
            RandomWalker walker = new RandomWalker();
            RandomWalkerObserver observer = new RandomWalkerObserver();

            walker.AddObserver(observer);

            for (int i = 0; i < 100000; i++)
            {
                walker.MakeStep();
            }
        }
Esempio n. 2
0
        public static void RunTests()
        {
            Console.WriteLine(Environment.NewLine + "Testing RandomWalker (Java way)");
            RandomWalker         walker   = new RandomWalker();
            RandomWalkerObserver observer = new RandomWalkerObserver();

            walker.AddObserver(observer);

            for (int i = 0; i < 100000; i++)
            {
                walker.MakeStep();
            }
        }
Esempio n. 3
0
 public RandomWalkEvent(Directions direction, RandomWalker walker) : this()
 {
     Direction = direction;
     Walker    = walker;
 }