You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Program.cs 1.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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 = 50.0f,
  26. RemoveJewelProbability = 0,
  27. SleepTime = 1000
  28. }, arConfig);
  29. Thread.Sleep(2);
  30. AgAgent.Start(new AgConfig
  31. {
  32. SleepTime = 1000,
  33. StartX = 0,
  34. StartY = 0,
  35. AutoAdjustSleepTime = false
  36. }, arConfig);
  37. AgAgent.Join();
  38. EnvThread.Join();
  39. }
  40. }
  41. }