chess moves are working; need more tests
[naja.git] / naja / constants.py
index 96824f4042dc530aa9da433c70fa64c7023bfc54..f81cb8f725a935c2fabb40784f80c9880d66eae2 100644 (file)
@@ -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,