def __init__(self, model): ''' Create new Schelling ASCII visualization ''' super().__init__(model) grid_viz = TextGrid(self.model.grid, self.print_ascii_agent) happy_viz = TextData(self.model, 'happy') self.elements = [grid_viz, happy_viz]
def __init__(self, model): ''' Create new Schelling ASCII visualization. ''' self.model = model grid_viz = TextGrid(self.model.grid, self.ascii_agent) happy_viz = TextData(self.model, 'happy') self.elements = [grid_viz, happy_viz]
def __init__(self, model): """ Create new Schelling ASCII visualization. """ self.model = model grid_viz = TextGrid(self.model.grid, self.print_ascii_agent) happy_viz = TextData(self.model, "happy") self.elements = [grid_viz, happy_viz]
def __init__(self, model): """ Create new Schelling ASCII visualization. """ self.model = model ##grid_viz = TextGrid(self.model.grid, self.print_ascii_agent) registered_viz = TextData(self.model, "registered") self.elements = [registered_viz]