2 * Program: pgn-extract: a Portable Game Notation (PGN) extractor.
3 * Copyright (C) 1994-2014 David Barnes
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 1, or (at your option)
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18 * David Barnes may be contacted as D.J.Barnes@kent.ac.uk
19 * http://www.cs.kent.ac.uk/people/staff/djb/
23 void init_hashtab(void);
24 Boolean determine_move_details(Colour colour,Move *move_details, Board *board);
25 HashCode HashLookup(Col col, Rank rank, Piece piece, Colour colour);
26 void make_move(MoveClass class, Col from_col, Rank from_rank, Col to_col, Rank to_rank,
27 Piece piece, Colour colour,Board *board);
28 CheckStatus king_is_in_check(const Board *board,Colour king_colour);
29 MovePair *find_pawn_moves(Col from_col, Rank from_rank, Col to_col,Rank to_rank,
30 Colour colour, const Board *board);
31 MovePair *find_knight_moves(Col to_col,Rank to_rank, Colour colour, const Board *board);
32 MovePair *find_bishop_moves(Col to_col,Rank to_rank, Colour colour, const Board *board);
33 MovePair *find_rook_moves(Col to_col,Rank to_rank, Colour colour, const Board *board);
34 MovePair *find_queen_moves(Col to_col,Rank to_rank, Colour colour, const Board *board);
35 MovePair *find_king_moves(Col to_col,Rank to_rank, Colour colour, const Board *board);
36 MovePair *exclude_checks(Piece piece, Colour colour,MovePair *possibles,
38 void free_move_pair_list(MovePair *move_list);
39 Boolean king_is_in_checkmate(Colour colour,Board *board);
40 MovePair *find_all_moves(const Board *board, Colour colour);