summaryrefslogtreecommitdiff
path: root/src/pieces.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/pieces.h')
-rw-r--r--src/pieces.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/pieces.h b/src/pieces.h
index 5689bb7..a88626a 100644
--- a/src/pieces.h
+++ b/src/pieces.h
@@ -31,8 +31,15 @@ int rookMoves[] = { 16, 1, -1, -16, 0 };
int queenMoves[] = { 17, 16, 15, 1, -1, -15, -16, -17, 0 };
int knightMoves[] = { 33, 31, 18, 14, -33, -31, -18, -14, 0 };
int kingMoves[] = { 17, 16, 15, 1, -1, -15, -16, -17, 0 };
-int pawnMoves[] = { 32, 17, 16, 15, 0 };
-int blackPawnMoves[] = { -32, -17, -16, -15, 0 };
+
+int pawnMoves[] = { 16, 0 };
+int blackPawnMoves[] = { 16, 0 };
+
+int newPawnMoves[] = { 32, 16, 0 };
+int newBlackPawnMoves[] = { -32, -16, 0 };
+
+int pawnAttackMoves[] = { 17, 15, 0 };
+int blackPawnAttackMoves[] = { -17, -15, 0 };
#define FILE_MASK 0b1111