X-Git-Url: https://git.ctpug.org.za/?a=blobdiff_plain;f=naja%2Fconstants.py;h=99dd99c97928caa730eec83829d5825c9c56051d;hb=7ffa20720668ad9e8701d0b5f98a2e3161132423;hp=d7e023a557700404c32bd63fa156bd6e75afac69;hpb=a7257f7008fb5e2a8203c996dd2545b737228594;p=naja.git diff --git a/naja/constants.py b/naja/constants.py index d7e023a..99dd99c 100644 --- a/naja/constants.py +++ b/naja/constants.py @@ -36,6 +36,14 @@ BITS = AttrDict({ DIRECTION_BITS = AttrDict((k, v) for k, v in BITS.items() if v < 4) CONDITION_BITS = AttrDict((k, v) for k, v in BITS.items() if v >= 4) +# Player defaults +PLAYER_DEFAULTS = AttrDict({ + 'INITIAL_BITS': BITS.NORTH | BITS.SOUTH | BITS.EAST | BITS.WEST, + 'INITIAL_POS': (2, 2), + 'MAX_HEALTH': 4, + 'WINS_REQUIRED': 4, +}) + # Game size constants TILE_SIZE = (96, 96) BOARD_SIZE = (5 * TILE_SIZE[0], 5 * TILE_SIZE[1])