42 lines
982 B
Python
42 lines
982 B
Python
import logging
|
|
|
|
from hopper.models.config import (
|
|
BoardSettings,
|
|
DebugSettings,
|
|
GameSettings,
|
|
InactivityWatchdogSettings,
|
|
Settings,
|
|
WSServerSettings,
|
|
)
|
|
from hopper.models.player import Player, Position
|
|
|
|
settings = Settings(
|
|
game=GameSettings(),
|
|
board=BoardSettings(
|
|
WIDTH=20,
|
|
HEIGHT=20,
|
|
OBSTACLE_COUNT=10,
|
|
),
|
|
inacivity_watchdog=InactivityWatchdogSettings(),
|
|
purchase_timeout=5,
|
|
log_level=logging.INFO,
|
|
ws_server=WSServerSettings(),
|
|
debug=DebugSettings(
|
|
PRINT_BOARD=True,
|
|
PLAYERS=[
|
|
Player(
|
|
name="Pero",
|
|
id="test-player-pero",
|
|
position=Position(x=9, y=10),
|
|
can_be_deactivated=False,
|
|
),
|
|
Player(
|
|
name="Mirko",
|
|
id="test-player-mirko",
|
|
position=Position(x=10, y=5),
|
|
can_be_deactivated=False,
|
|
),
|
|
],
|
|
),
|
|
)
|