add license information & rename typedefs
This commit is contained in:
24
src/piece.h
24
src/piece.h
@@ -1,15 +1,29 @@
|
||||
/* piece.h - piece definitions.
|
||||
*
|
||||
* Copyright (C) 2021 Bruno Raoult ("br")
|
||||
* Licensed under the GNU General Public License v3.0 or later.
|
||||
* Some rights reserved. See COPYING.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along with this
|
||||
* program. If not, see <https://www.gnu.org/licenses/gpl-3.0-standalone.htmlL>.
|
||||
*
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later <https://spdx.org/licenses/GPL-3.0-or-later.html>
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef PIECE_H
|
||||
#define PIECE_H
|
||||
|
||||
#include "chessdefs.h"
|
||||
#include "board.h"
|
||||
#include "list.h"
|
||||
|
||||
typedef struct piece {
|
||||
short piece;
|
||||
short color;
|
||||
SQUARE square;
|
||||
piece_t piece;
|
||||
square_t square;
|
||||
short castle;
|
||||
float value;
|
||||
} PIECE, PLAYER_PIECES[16];
|
||||
int64_t value;
|
||||
struct list_head list;
|
||||
} piece_list_t;
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user