quick code split.

This commit is contained in:
k
2025-06-18 12:38:00 -04:00
parent 8624840700
commit 3aa41364b3
7 changed files with 357 additions and 325 deletions

11
headers/help.h Normal file
View 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
View 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
View 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