automatyczny_kelner/agent.py

26 lines
726 B
Python
Raw Permalink Normal View History

from src.Engine import Engine
from src.obj.Waiter import Waiter
from src.obj.Kitchen import Kitchen
2023-06-08 02:28:59 +02:00
from src.controller.LayoutController import LayoutController
from src.controller.ImageController import ImageController
SCREEN_SIZE = [800, 800]
SQUARE_SIZE = 80
2023-06-15 16:51:27 +02:00
ACTION_DURATION = 0.1
store = ImageController(SQUARE_SIZE)
waiter = Waiter([0, 0], 0, SQUARE_SIZE, SCREEN_SIZE, store)
kitchen = Kitchen([0, 0], 0, SQUARE_SIZE, SCREEN_SIZE, store)
2023-06-15 16:51:27 +02:00
engine = Engine(SCREEN_SIZE, SQUARE_SIZE, kitchen, waiter, ACTION_DURATION)
2023-06-16 08:25:12 +02:00
layout = LayoutController(engine, store)
2023-06-17 17:16:58 +02:00
params = layout.train_loop(12)
2023-06-15 21:22:07 +02:00
2023-06-16 08:25:12 +02:00
layout.create_and_subscribe(
params['radius'],
params['neighbors_count'],
params['block_probability']
)
2023-06-15 21:22:07 +02:00
2023-06-16 08:25:12 +02:00
engine.loop()