Exemplo n.º 1
0
        public void GetDefault_None_ParametersToString()
        {
            var pars = EvaluatorParameters.GetDefault();
            var act  = BotData.ParametersToString(pars);

            Console.Write(act);

            var bots = new Bots();

            bots.Add(pars);
            bots.Save(new FileInfo("default.xml"));
        }
        public void Save_OneBot_ToFile()
        {
            var collection = new SimulationBotCollection()
            {
                new BotData()
                {
                    Id      = 17,
                    Locked  = true,
                    DefPars = EvaluatorParameters.GetDefault(),
                },
            };

            var file = new FileInfo("collection.xml");

            collection.Save(file);
        }
Exemplo n.º 3
0
 public BlockPath GetMove(Field field, Block current, Block next, int round)
 {
     return(GetMove(field, current, next, round, EvaluatorParameters.GetDefault()));
 }
Exemplo n.º 4
0
 public static EvaluatorParameters GetDef()
 {
     return(EvaluatorParameters.GetDefault().Calc());
 }