quick code split.
This commit is contained in:
11
headers/help.h
Normal file
11
headers/help.h
Normal file
@@ -0,0 +1,11 @@
|
||||
#ifndef HELP_H
|
||||
#define HELP_H
|
||||
#include "types.h"
|
||||
|
||||
long long fullSet(sets *s);
|
||||
long long fullSetBoth(game *g);
|
||||
void print_bitboard(long long bitboard);
|
||||
long long *findSet(game *g, long long bit);
|
||||
long long *charToSet(game *g, char c);
|
||||
|
||||
#endif
|
||||
6
headers/moves.h
Normal file
6
headers/moves.h
Normal file
@@ -0,0 +1,6 @@
|
||||
#ifndef MOVES_H
|
||||
#define MOVES_H
|
||||
#include "types.h"
|
||||
int pawnMove(game *g, move *moves);
|
||||
int knightMove(game *g, move* moves);
|
||||
#endif
|
||||
25
headers/types.h
Normal file
25
headers/types.h
Normal file
@@ -0,0 +1,25 @@
|
||||
#ifndef TYPES_H
|
||||
#define TYPES_H
|
||||
#include <stdbool.h>
|
||||
|
||||
typedef struct {
|
||||
long long pawns;
|
||||
long long knights;
|
||||
long long bishops;
|
||||
long long rooks;
|
||||
long long queen;
|
||||
long long king;
|
||||
} sets;
|
||||
|
||||
typedef struct {
|
||||
sets white;
|
||||
sets black;
|
||||
bool whiteToMove;
|
||||
} game;
|
||||
|
||||
typedef struct {
|
||||
int From;
|
||||
int To;
|
||||
} move;
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user