示例#1
0
 public GameForm(Environnement environment)
 {
     InitializeComponent();
     this._columns          = new Rectangle[7]; // 7 columns
     this._environment      = environment;
     this._environment.turn = playerTurn.playerRed;
 }
示例#2
0
 public Agent(Environnement env)
 {
     captor   = new Captor(env);
     effector = new Effector(env);
     _beliefs = new Beliefs();
     this._beliefs.environment = env;
 }
示例#3
0
        static void Main()
        {
            Environnement env = new Environnement();
            //Captor cap = new Captor(env);
            Agent agent = new Agent(env);

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            GameForm ui = new GameForm(env);

            env.setUI(ui);
            Thread Thread1 = new Thread(() => uiThread(ui));
            Thread Thread2 = new Thread(() => agentThread(agent));

            Thread1.Start();
            Thread2.Start();

            Console.WriteLine("truc");
        }
示例#4
0
 public Captor(Environnement environment)
 {
     this._environment = environment;
 }
示例#5
0
 public Effector(Environnement env)
 {
     this._environment = env;
 }