34 lines
1.1 KiB
C
34 lines
1.1 KiB
C
/* hq.h - hyperbola-quintessence definitions.
|
|
*
|
|
* Copyright (C) 2024 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.html>.
|
|
*
|
|
* SPDX-License-Identifier: GPL-3.0-or-later <https://spdx.org/licenses/GPL-3.0-or-later.html>
|
|
*
|
|
*/
|
|
|
|
#ifndef _HQ_H
|
|
#define _HQ_H
|
|
|
|
#include "board.h"
|
|
#include "bitboard.h"
|
|
|
|
void hq_init(void);
|
|
|
|
bitboard_t hq_rank_moves(const bitboard_t occ, const square_t sq);
|
|
bitboard_t hq_moves(const bitboard_t pieces, const square_t sq,
|
|
const bitboard_t mask);
|
|
bitboard_t hq_file_moves(const bitboard_t occ, const square_t sq);
|
|
bitboard_t hq_diag_moves(const bitboard_t occ, const square_t sq);
|
|
bitboard_t hq_anti_moves(const bitboard_t occ, const square_t sq);
|
|
|
|
bitboard_t hq_bishop_moves(const bitboard_t occ, const square_t sq);
|
|
bitboard_t hq_rook_moves(const bitboard_t occ, const square_t sq);
|
|
bitboard_t hq_queen_moves(const bitboard_t occ, const square_t sq);
|
|
|
|
#endif /* _HQ_H */
|