Esempio n. 1
0
        private static void Main(string[] args)
        {
            var env         = new ConcurrentEnvironment();
            var mapAgent    = new MapAgent(); env.Add(mapAgent, "map");
            var searchAgent = new SearchAgent(); env.Add(searchAgent, "agent1");

            mapAgent.Start(); Thread.Sleep(100); searchAgent.Start();

            env.WaitAll();
        }
Esempio n. 2
0
        private static void Main(string[] args)
        {
            var env         = new TurnBasedEnvironment();
            var mapAgent    = new MapAgent(); env.Add(mapAgent, "map");
            var searchAgent = new SearchAgent(); env.Add(searchAgent, "agent1");

            env.Memory.Add("MapName", "Pendulum");
            //env.Memory.Add("MapName", "StrangeHeuristic");
            env.Memory.Add("Delay", 100);

            env.Start();
        }