public Agent(Coordonnees c, SearchStrategy strategy) { _coordonnees = c; _score = 0; _intentions = new Intentions(); _capteurs = new Capteurs(); _effecteur = new Effecteurs(); _strategy = strategy; _belief = new Belief(); }
public void run() { while (true) { Capteurs.observeEnvironment(); updateState(); if (!_belief.Dust.Any() && !_belief.Jewels.Any()) { continue; } chooseAction(); Console.WriteLine("Intentions: " + Intentions.ToString()); justDoIt(); } }