My Project
perft.h
Go to the documentation of this file.
1
11#ifndef EDAX_PERFT_H
12#define EDAX_PERFT_H
13
14#include <stdbool.h>
15
16struct Board;
17struct Line;
18void count_games(const struct Board*, const int);
19void quick_count_games(const struct Board*, const int, const int);
20void count_positions(const struct Board*, const int, const int);
21void count_shapes(const struct Board*, const int, const int);
22void estimate_games(const struct Board*, const long long);
23void seek_highest_mobility(const struct Board*, const unsigned long long);
24bool seek_position(const struct Board*, const struct Board*, struct Line*);
25
27typedef struct PositionHash {
28 struct PosArray *array;
29 int size;
30 int mask;
35
36#endif /* EDAX_PERFT_H */
void positionhash_init(PositionHash *, int)
Initialisation of the hash table.
Definition: perft.c:709
void estimate_games(const struct Board *, const long long)
void seek_highest_mobility(const struct Board *, const unsigned long long)
bool seek_position(const struct Board *, const struct Board *, struct Line *)
void positionhash_delete(PositionHash *)
Free the hash table.
Definition: perft.c:724
void count_games(const struct Board *, const int)
void count_shapes(const struct Board *, const int, const int)
void count_positions(const struct Board *, const int, const int)
void quick_count_games(const struct Board *, const int, const int)
bool positionhash_append(PositionHash *, const struct Board *)
Definition: board.h:26
Definition: move.h:35
Definition: perft.c:579
Definition: perft.h:27
int mask
Definition: perft.h:30
struct PosArray * array
Definition: perft.h:28
int size
Definition: perft.h:29