Beispiel #1
0
 public Agent(Coordonnees c, SearchStrategy strategy)
 {
     _coordonnees = c;
     _score       = 0;
     _intentions  = new Intentions();
     _capteurs    = new Capteurs();
     _effecteur   = new Effecteurs();
     _strategy    = strategy;
     _belief      = new Belief();
 }
Beispiel #2
0
        public void run()
        {
            while (true)
            {
                Capteurs.observeEnvironment();

                updateState();
                if (!_belief.Dust.Any() && !_belief.Jewels.Any())
                {
                    continue;
                }
                chooseAction();
                Console.WriteLine("Intentions: " + Intentions.ToString());

                justDoIt();
            }
        }