config.py 1.6KB

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