public GameForm(Environnement environment) { InitializeComponent(); this._columns = new Rectangle[7]; // 7 columns this._environment = environment; this._environment.turn = playerTurn.playerRed; }
public Agent(Environnement env) { captor = new Captor(env); effector = new Effector(env); _beliefs = new Beliefs(); this._beliefs.environment = env; }
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"); }
public Captor(Environnement environment) { this._environment = environment; }
public Effector(Environnement env) { this._environment = env; }