chess moves are working; need more tests
[naja.git] / naja / constants.py
index 92162ce1d87fd979eb0081e137ad556f970f4195..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,
@@ -70,3 +81,23 @@ KEYS = AttrDict({
     'QUIT': (pgl.K_ESCAPE, pgl.K_q),
     'SWITCH': (pgl.K_TAB,),
 })
+
+# PALETTE
+
+PALETTE = AttrDict({
+    'BLACK': (0, 0, 0),
+    'DARK_RED': (108, 41, 64),
+    'DARK_VIOLET': (64, 53, 120),
+    'MAGENTA': (217, 60, 240),
+    'DARK_GREEN': (19, 87, 64),
+    'GREY': (128, 128, 128),
+    'BLUE': (38, 151, 240),
+    'LIGHT_VIOLET': (191, 180, 248),
+    'DARK_OLIVE': (64, 75, 7),
+    'ORANGE': (217, 104, 15),
+    'PINK': (236, 168, 191),
+    'GREEN': (38, 195, 15),
+    'LIGHT_OLIVE': (191, 202, 135),
+    'LIGHT_TURQUOISE': (147, 214, 191),
+    'WHITE': (255, 255, 255),
+})