X-Git-Url: https://git.ctpug.org.za/?a=blobdiff_plain;f=naja%2Fconstants.py;fp=naja%2Fconstants.py;h=f81cb8f725a935c2fabb40784f80c9880d66eae2;hb=aac1783aa9c84031bb37d74616ee72a7b32ebeac;hp=96824f4042dc530aa9da433c70fa64c7023bfc54;hpb=d2d864e01ddcf38536812f37b8bffb3ee3227d4f;p=naja.git diff --git a/naja/constants.py b/naja/constants.py index 96824f4..f81cb8f 100644 --- a/naja/constants.py +++ b/naja/constants.py @@ -39,6 +39,17 @@ 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 MOVES +MOVES = AttrDict({ + # Default move + 'ADJACENT': 0, + # Chess moves + 'KNIGHT': 1, + 'BISHOP': 2, + 'CASTLE': 3, +}) +CHESS_PIECES = AttrDict((k, v) for k, v in MOVES.items() if v > 0) + # Player defaults PLAYER_DEFAULTS = AttrDict({ 'INITIAL_BITS': 0x0f,