from lifegame.synergy.collection.LifeGameCollection import LifeGameCollection
from lifegame.synergy.LifeGameSimulation import LifeGameSimulation
from lifegame.synergy.collection.LifeGameCollectionConfiguration import LifeGameCollectionConfiguration
from lifegame.display.curses_visualisation import visualisation as curses_visualisation
from lifegame.display.pygame_visualisation import visualisation as pygame_visualisation
from xyworld.display.CursesDisplay import CursesDisplay
from xyworld.display.PygameDisplay import PygameDisplay
from synergine.display.TestDisplay import TestDisplay
from traveller.synergy.TravellerSimulation import TravellerSimulation
from traveller.synergy.TravellerCollection import TravellerCollection
from traveller.synergy.TravellerCollectionConfiguration import TravellerCollectionConfiguration
from traveller.display.visualisation import visualisation as traveller_visualisation
from traveller.display.TravellerDisplay import TravellerDisplay
from traveller.core.Context import Context as TravellerContext
from xyzworld.Context import Context as XyzContext

config = {
    'app': {
        'name': 'Synergine',
        'classes': {
          'Context': XyzContext
        }
    },
    'engine': {
        'fpsmax': 255,
        'debug': {
            'mainprocess': False,
            'cycles': 100
        }
    },
    'simulations' : [LifeGameSimulation([LifeGameCollection(LifeGameCollectionConfiguration())])],
    'connections': [],#TestDisplay, PygameDisplay, CursesDisplay],
    'terminal': {
        '__default__': {
            'app': {
                'name': 'Synergine (graphic output)'
            },
            'display': {
                'grid': {
                    'size': 20
                }
            }
        },
        'pygame': {
            'visualisation': pygame_visualisation,
            'window_size': (800, 600),
            'app': {
                'name': 'Synergine (pygame)'
            },
            'font': {
                'name': 'arial',
                'size': 13
            },
            'background': {
              'color': (0, 0, 0)
            }
        },
        'curses': {
            'visualisation': curses_visualisation,
            'display': {
                'grid': {
                    'size': 1
                }
            }
        }
    }
}

config_traveller = {
    'app': {
        'name': 'Traveller',
        'classes': {
            'Context': TravellerContext
        }
    },
    'engine': {
        'fpsmax': 255,
        'debug': {
            'mainprocess': True,
            'cycles': -1
        }
    },
    'simulations' : [TravellerSimulation([TravellerCollection(TravellerCollectionConfiguration())])],
    'connections': [TravellerDisplay],
    'terminal': {
        'pygame': {
            'visualisation': traveller_visualisation,
            'window_size': (800, 600),
            'app': {
                'name': 'Synergine (pygame)'
            },
            'font': {
                'name': 'arial',
                'size': 13
            },
            'display': {
                'grid': {
                    'size': 20
                }
            }
        }
    }
}
@@ -588,456 +588,8 @@
 lay%0A
-from traveller.synergy.TravellerSimulation import TravellerSimulation%0Afrom traveller.synergy.TravellerCollection import TravellerCollection%0Afrom traveller.synergy.TravellerCollectionConfiguration import TravellerCollectionConfiguration%0Afrom traveller.display.visualisation import visualisation as traveller_visualisation%0Afrom traveller.display.TravellerDisplay import TravellerDisplay%0Afrom traveller.core.Context import Context as TravellerContext%0A
 from
@@ -1897,860 +1897,4 @@
 %7D%0A%7D%0A
-%0Aconfig_traveller = %7B%0A    'app': %7B%0A        'name': 'Traveller',%0A        'classes': %7B%0A            'Context': TravellerContext%0A        %7D%0A    %7D,%0A    'engine': %7B%0A        'fpsmax': 255,%0A        'debug': %7B%0A            'mainprocess': True,%0A            'cycles': -1%0A        %7D%0A    %7D,%0A    'simulations' : %5BTravellerSimulation(%5BTravellerCollection(TravellerCollectionConfiguration())%5D)%5D,%0A    'connections': %5BTravellerDisplay%5D,%0A    'terminal': %7B%0A        'pygame': %7B%0A            'visualisation': traveller_visualisation,%0A            'window_size': (800, 600),%0A            'app': %7B%0A                'name': 'Synergine (pygame)'%0A            %7D,%0A            'font': %7B%0A                'name': 'arial',%0A                'size': 13%0A            %7D,%0A            'display': %7B%0A                'grid': %7B%0A                    'size': 20%0A                %7D%0A            %7D%0A        %7D%0A    %7D%0A%7D

remove traveller config