config.py 1.6KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. from intelligine.core.Context import Context
  2. from intelligine.display.Pygame import Pygame
  3. import argparse
  4. parser = argparse.ArgumentParser(description='Select sandbox.')
  5. parser.add_argument('sandbox', metavar='sandbox', type=str, nargs=1,
  6. help='Name of sandbox: ' + ', '.join(['exploration', 'all']))
  7. args = parser.parse_args()
  8. if 'all' in args.sandbox:
  9. from intelligine.sandbox.all.all import simulations, visualisation as pygame_visualisation
  10. elif 'exploration' in args.sandbox:
  11. from intelligine.sandbox.exploration.exploration import simulations, visualisation as pygame_visualisation
  12. else:
  13. parser.parse_args(['-h'])
  14. config = {
  15. 'app': {
  16. 'name': 'StigEngine',
  17. 'classes': {
  18. 'Context': Context
  19. }
  20. },
  21. 'engine': {
  22. 'fpsmax': 2555,
  23. 'debug': {
  24. 'mainprocess': True,
  25. 'cycles': -1,
  26. 'seed': 42
  27. }
  28. },
  29. 'simulations': simulations,
  30. 'connections': [Pygame],
  31. 'terminal': {
  32. 'pygame': {
  33. 'visualisation': pygame_visualisation,
  34. 'window_size': (800, 600),
  35. 'app': {
  36. 'name': 'SocialIntengine'
  37. },
  38. 'display': {
  39. 'grid': {
  40. 'size': 20
  41. }
  42. },
  43. 'font': {
  44. 'name': 'arial',
  45. 'size': 13
  46. },
  47. 'background': {
  48. 'color': (125, 125, 125)
  49. }
  50. }
  51. },
  52. 'ant': {
  53. 'take': {
  54. 'cant_put_still': 5
  55. },
  56. 'put': {
  57. 'max_objects_at_same_position': 5
  58. }
  59. }
  60. }