Esempio n. 1
0
 public BrainToMalmoController(IBlackBox givenBrain, ProgramMalmo givenMalmo)
 {
     programMalmo = givenMalmo;
     SetDotAsDecimalSeparator();
     brain = givenBrain;
     programMalmo.ObservationsEvent += new EventHandler <ObservationEventArgs>(WhenObservationsEvent);
 }
 public MazeControllerWithDiagonals(IBlackBox givenBrain, ProgramMalmo givenMalmo)
 {
     programMalmo = givenMalmo;
     SetDotAsDecimalSeparator();
     brain = givenBrain;
     programMalmo.ObservationsEvent += new EventHandler <ObservationEventArgs>(WhenObservationsEvent);
     programMalmo.ResetNetworkEvent += new EventHandler <ObservationEventArgs>(OnResetEvent);
     neighbourTiles = new ManyTiles();
 }