123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- from intelligine.core.Context import Context
- from intelligine.display.Pygame import Pygame
- import argparse
-
- parser = argparse.ArgumentParser(description='Select sandbox.')
- parser.add_argument('sandbox', metavar='sandbox', type=str, nargs=1,
- help='Name of sandbox: ' + ', '.join(['exploration', 'all']))
-
- args = parser.parse_args()
-
- if 'all' in args.sandbox:
- from intelligine.sandbox.all.all import simulations, visualisation as pygame_visualisation
- elif 'exploration' in args.sandbox:
- from intelligine.sandbox.exploration.exploration import simulations, visualisation as pygame_visualisation
- else:
- parser.parse_args(['-h'])
-
- config = {
- 'app': {
- 'name': 'StigEngine',
- 'classes': {
- 'Context': Context
- }
- },
- 'engine': {
- 'fpsmax': 2555,
- 'debug': {
- 'mainprocess': True,
- 'cycles': -1
- }
- },
- 'simulations': simulations,
- 'connections': [Pygame],
- 'terminal': {
- 'pygame': {
- 'visualisation': pygame_visualisation,
- 'window_size': (800, 600),
- 'app': {
- 'name': 'SocialIntengine'
- },
- 'display': {
- 'grid': {
- 'size': 20
- }
- },
- 'font': {
- 'name': 'arial',
- 'size': 13
- },
- 'background': {
- 'color': (125, 125, 125)
- }
- }
- },
- 'ant': {
- 'take': {
- 'cant_put_still': 5
- }
- }
- }
|