#!/usr/bin/python from core.event import EventDispatcher from core.controller import KeyboardController, CPUIdler from core.model import Environment from schelling.view import SchellingView from schelling.model import SchellingSimulation from schelling.controller import SchellingController # Event dispatcher disp = EventDispatcher() # View v = SchellingView(disp, w=380, h=380, zoom=0.8) # Models s = SchellingSimulation(disp, env=Environment(disp, 30, 30), a1_count=300, a2_count=300, a1_rate=0.7, a2_rate=0.8) # Controllers k = KeyboardController(disp) c = CPUIdler(disp) sc = SchellingController(disp) c.idle()