config.py 1.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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. }
  27. },
  28. 'simulations': simulations,
  29. 'connections': [Pygame],
  30. 'terminal': {
  31. 'pygame': {
  32. 'visualisation': pygame_visualisation,
  33. 'window_size': (800, 600),
  34. 'app': {
  35. 'name': 'SocialIntengine'
  36. },
  37. 'display': {
  38. 'grid': {
  39. 'size': 20
  40. }
  41. },
  42. 'font': {
  43. 'name': 'arial',
  44. 'size': 13
  45. },
  46. 'background': {
  47. 'color': (125, 125, 125)
  48. }
  49. }
  50. },
  51. 'ant': {
  52. 'take': {
  53. 'cant_put_still': 5
  54. }
  55. }
  56. }