structures forward declarations

This commit is contained in:
2021-11-04 13:06:24 +01:00
parent ad155b5a60
commit c7faa88bfa
6 changed files with 22 additions and 13 deletions

View File

@@ -14,12 +14,13 @@
#ifndef PIECE_H
#define PIECE_H
#include <ctype.h>
#include "chessdefs.h"
#include "board.h"
#include "list.h"
#include "position.h"
#include "pool.h"
#include "ctype.h"
#define PIECE_DEFAULT_VALUE 0
@@ -31,7 +32,7 @@
#define QUEEN_VALUE 900
#define KING_VALUE 20000
typedef struct {
typedef struct piece_list_s {
piece_t piece;
square_t square;
short castle;