aboutsummaryrefslogtreecommitdiff
path: root/src/board.h
diff options
context:
space:
mode:
authoreug-vs <eugene@eug-vs.xyz>2022-09-14 17:49:07 +0300
committereug-vs <eugene@eug-vs.xyz>2022-09-14 17:50:55 +0300
commita881be4856c6d3dc7675059d5a635d34434b5797 (patch)
treede1551798279a2fa048e70c977b3c3f98f515d62 /src/board.h
parent71f28db1b8e26377d56f0eb0aef01f6c6c3afbd0 (diff)
downloadj1chess-a881be4856c6d3dc7675059d5a635d34434b5797.tar.gz
refactor: use lowerCamelCase for functions
Diffstat (limited to 'src/board.h')
-rw-r--r--src/board.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/board.h b/src/board.h
index e3309e2..e24a130 100644
--- a/src/board.h
+++ b/src/board.h
@@ -13,8 +13,8 @@
typedef struct {
Bitboard pieces[12];
BYTE side;
- BYTE castling_rights;
- BYTE en_passant_square;
+ BYTE castlingRights;
+ BYTE enPassantSquare;
} Board;
enum enumSquare {
@@ -53,10 +53,10 @@ static const char* pieces[] = {
#define notGFile 0xBFBFBFBFBFBFBFBF
#define notHFile 0x7F7F7F7F7F7F7F7F
-Board parse_FEN(char* FEN);
+Board parseFEN(char* FEN);
-void print_board(Board board);
+void printBoard(Board board);
-void precompute_knight_attack_table(Bitboard table[64]);
-void precompute_king_attack_table(Bitboard table[64]);
-void precompute_pawn_attack_table(Bitboard table[64], BYTE color);
+void precomputeKnightAttackTable(Bitboard table[64]);
+void precomputeKingAttackTable(Bitboard table[64]);
+void precomputePawnAttackTable(Bitboard table[64], BYTE color);