Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

Program.cs 1.2KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. using System.Threading;
  2. using uqac_ia_aspirobot.Agent;
  3. using uqac_ia_aspirobot.Common;
  4. using uqac_ia_aspirobot.Environment;
  5. namespace uqac_ia_aspirobot
  6. {
  7. internal class Program
  8. {
  9. public static void Main(string[] args)
  10. {
  11. Thread.CurrentThread.Name = "Main";
  12. var arConfig = new ArConfig
  13. {
  14. PipeName = "aspirobot-1.0",
  15. PipeServer = ".",
  16. ServerThreadCount = 1
  17. };
  18. EnvThread.Start(new EnvConfig
  19. {
  20. Height = 5,
  21. Width = 5,
  22. ActionPropability = 30.0f,
  23. AddDustProbability = 50.0f,
  24. AddJewelProbability = 50.0f,
  25. RemoveJewelProbability = 30.0f,
  26. SleepTime = 1000
  27. }, arConfig);
  28. Thread.Sleep(2);
  29. AgAgent.Start(new AgConfig
  30. {
  31. SleepTime = 1000,
  32. StartX = 0,
  33. StartY = 0,
  34. AutoAdjustThinkTimeInterval = true,
  35. ThinkTimeInterval = 10000,
  36. LowPerformance = -1
  37. }, arConfig);
  38. AgAgent.Join();
  39. EnvThread.Join();
  40. }
  41. }
  42. }