Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            Random rand = new Random();
            IEloEngine elo = new FideEloEngine();
            PlayerPoolFactory ppf = new PlayerPoolFactory(new FileStream(@"d:\temp\names\names.txt", FileMode.Open), rand);
            List<Player> pool = ppf.CreatePlayerPool(1000, elo.MinRating, elo.MaxRating);
            Ladder ladder = new Ladder(pool, elo);
            /*ladder.OnStartGame += player_OnStartGame;
            ladder.OnEndGame += player_OnEndGame;
            ladder.RegisterForTracking(pool[rand.Next(0, pool.Count())]);*/

            ladder.Compete(10000);

            evaluateEloAccuracty(pool);
            Console.ReadLine();
        }
Ejemplo n.º 2
0
        static void Main(string[] args)
        {
            Random            rand   = new Random();
            IEloEngine        elo    = new FideEloEngine();
            PlayerPoolFactory ppf    = new PlayerPoolFactory(new FileStream(@"d:\temp\names\names.txt", FileMode.Open), rand);
            List <Player>     pool   = ppf.CreatePlayerPool(1000, elo.MinRating, elo.MaxRating);
            Ladder            ladder = new Ladder(pool, elo);

            /*ladder.OnStartGame += player_OnStartGame;
             * ladder.OnEndGame += player_OnEndGame;
             * ladder.RegisterForTracking(pool[rand.Next(0, pool.Count())]);*/

            ladder.Compete(10000);

            evaluateEloAccuracty(pool);
            Console.ReadLine();
        }