#!/usr/bin/python from core.event import EventDispatcher from core.controller import KeyboardController, CPUIdler from wator.view import WatorView from wator.model import WatorSimulation, ToricEnvironment from wator.controller import WatorController # Event dispatcher disp = EventDispatcher() # View v = WatorView(disp, w=350, h=350, zoom=1) # Models s = WatorSimulation(disp, env=ToricEnvironment(disp, 30, 30), sharks=80, fishes=100, fish_breeding_age=2, shark_breeding_age=10, shark_starvation_time=3) # Controllers k = KeyboardController(disp) c = CPUIdler(disp) bc = WatorController(disp) c.idle()