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

@@ -16,10 +16,12 @@
#include <stdint.h>
#include "chessdefs.h"
#include "piece.h"
#include "position.h"
typedef struct {
typedef struct board_s {
piece_t piece;
//piece_t *s_piece;
piece_list_t *s_piece;
} board_t; /* 0x88 board */
#define BOARDSIZE (8*8*2)
@@ -51,4 +53,4 @@ typedef struct {
#define FILE2C(f) ((f) + 'a')
#define RANK2C(r) ((r) + '1')
#endif
#endif /* BOARD_H */