Multiple test players
This commit is contained in:
@ -1,11 +1,15 @@
|
||||
import logging
|
||||
from dataclasses import dataclass
|
||||
from typing import Optional
|
||||
from typing import List, Optional
|
||||
|
||||
from hopper.models.player import Player
|
||||
|
||||
|
||||
@dataclass
|
||||
class GameSettings:
|
||||
MOVE_DELAY: float = 0.5 # seconds
|
||||
|
||||
|
||||
@dataclass
|
||||
class BoardSettings:
|
||||
WIDTH: int = 21
|
||||
@ -29,9 +33,7 @@ class WSServerSettings:
|
||||
@dataclass
|
||||
class DebugSettings:
|
||||
PRINT_BOARD: bool = False
|
||||
CREATE_TEST_PLAYER: bool = False
|
||||
TEST_PLAYER_START_X: int = 0
|
||||
TEST_PLAYER_START_Y: int = 0
|
||||
PLAYERS: Optional[List[Player]] = None
|
||||
|
||||
|
||||
@dataclass
|
||||
|
||||
Reference in New Issue
Block a user