30 lines
699 B
C
30 lines
699 B
C
/* 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 {
|
|
piece_t piece;
|
|
square_t square;
|
|
short castle;
|
|
int64_t value;
|
|
struct list_head list;
|
|
} piece_list_t;
|
|
|
|
#endif
|