32 lines
639 B
Python
32 lines
639 B
Python
import os
|
|
import logging
|
|
|
|
from hopper.models.config import (
|
|
BoardSettings,
|
|
DebugSettings,
|
|
GameSettings,
|
|
InactivityWatchdogSettings,
|
|
Settings,
|
|
WSServerSettings,
|
|
)
|
|
|
|
settings = Settings(
|
|
game=GameSettings(),
|
|
board=BoardSettings(
|
|
WIDTH=20,
|
|
HEIGHT=20,
|
|
OBSTACLE_COUNT=0,
|
|
),
|
|
inacivity_watchdog=InactivityWatchdogSettings(),
|
|
purchase_timeout=5,
|
|
log_level=logging.INFO,
|
|
ws_server=WSServerSettings(
|
|
HOST="0.0.0.0",
|
|
PORT=int(os.environ.get("FAIRHOPPER_WS_PORT", 8011)),
|
|
),
|
|
debug=DebugSettings(
|
|
PRINT_BOARD=True,
|
|
PLAYERS=[],
|
|
),
|
|
)
|