41 lines
989 B
Python
41 lines
989 B
Python
import os
|
|
import logging
|
|
|
|
from hopper.models.config import (
|
|
BoardSettings,
|
|
DebugSettings,
|
|
GameSettings,
|
|
InactivityWatchdogSettings,
|
|
Settings,
|
|
WSServerSettings,
|
|
)
|
|
from hopper.models.product import Product
|
|
|
|
settings = Settings(
|
|
game=GameSettings(),
|
|
board=BoardSettings(
|
|
WIDTH=20,
|
|
HEIGHT=20,
|
|
OBSTACLE_COUNT=0,
|
|
),
|
|
inacivity_watchdog=InactivityWatchdogSettings(),
|
|
purchase_timeout=5,
|
|
log_level=logging.INFO,
|
|
products=[
|
|
Product(name="CocaCola", id="cocacola-id"),
|
|
Product(name="Pepsi", id="pepsi-id"),
|
|
Product(name="Fanta", id="fanta-id"),
|
|
Product(name="Snickers", id="snickers-id"),
|
|
Product(name="Mars", id="mars-id"),
|
|
Product(name="Burek", id="burek-id"),
|
|
],
|
|
ws_server=WSServerSettings(
|
|
HOST="0.0.0.0",
|
|
PORT=int(os.environ.get("FAIRHOPPER_WS_PORT", 8011)),
|
|
),
|
|
debug=DebugSettings(
|
|
PRINT_BOARD=True,
|
|
PLAYERS=[],
|
|
),
|
|
)
|