The Pedigree Project
0.1
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
src
user
applications
chess
moves.h
1
/*
2
*
3
* Copyright (c) 2008-2014, Pedigree Developers
4
*
5
* Please see the CONTRIB file in the root of the source tree for a full
6
* list of contributors.
7
*
8
* Permission to use, copy, modify, and distribute this software for any
9
* purpose with or without fee is hereby granted, provided that the above
10
* copyright notice and this permission notice appear in all copies.
11
*
12
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
13
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
14
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
15
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
16
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
17
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
18
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
19
*/
20
21
#ifndef MOVES_H
22
#define MOVES_H
23
24
#include "Bitboard.h"
25
#include "Square.h"
26
27
void
initLookupTable();
28
Bitboard
rookMoves(
Bitboard
allPieces,
Bitboard
enemyPieces,
Square
pos);
29
Bitboard
bishopMoves(
Bitboard
allPieces,
Bitboard
enemyPieces,
Square
pos);
30
Bitboard
queenMoves(
Bitboard
allPieces,
Bitboard
enemyPieces,
Square
pos);
31
Bitboard
knightMoves(
Bitboard
allPieces,
Bitboard
enemyPieces,
Square
pos);
32
Bitboard
kingMoves(
Bitboard
allPieces,
Bitboard
enemyPieces,
Square
pos,
bool
leftRookMoved,
33
bool
rightRookMoved,
bool
kingMoved);
34
Bitboard
pawnMoves(
Bitboard
allPieces,
Bitboard
enemyPieces,
Bitboard
enemyPawnsEnPassant,
Square
pos);
35
Bitboard
pawnAttackOnly(
Bitboard
allPieces,
Bitboard
enemyPieces,
Bitboard
enemyPawnsEnPassant,
Square
pos);
36
37
#endif
Bitboard
Definition:
Bitboard.h:27
Square
Definition:
Square.h:24
Generated on Fri Jan 24 2020 06:46:14 for The Pedigree Project by
1.8.11