51 lines
1.3 KiB
Python
51 lines
1.3 KiB
Python
import logging
|
|
|
|
from hopper.models.config import (
|
|
BoardSettings,
|
|
DebugSettings,
|
|
GameSettings,
|
|
InactivityWatchdogSettings,
|
|
Settings,
|
|
WSServerSettings,
|
|
)
|
|
from hopper.models.player import Player, Position
|
|
from hopper.models.product import Product
|
|
|
|
settings = Settings(
|
|
game=GameSettings(),
|
|
board=BoardSettings(
|
|
WIDTH=20,
|
|
HEIGHT=20,
|
|
OBSTACLE_COUNT=10,
|
|
),
|
|
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(),
|
|
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,
|
|
),
|
|
],
|
|
),
|
|
)
|