Classes | Typedefs | Functions
perft.h File Reference

Move generator test header file. More...

#include <stdbool.h>

Go to the source code of this file.

Classes

struct  PositionHash
 

Typedefs

typedef struct PositionHash PositionHash
 

Functions

void count_games (const struct Board *, const int)
 
void quick_count_games (const struct Board *, const int, const int)
 
void count_positions (const struct Board *, const int, const int)
 
void count_shapes (const struct Board *, const int, const int)
 
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_init (PositionHash *, int)
 Initialisation of the hash table. More...
 
void positionhash_delete (PositionHash *)
 Free the hash table. More...
 
bool positionhash_append (PositionHash *, const struct Board *)
 

Detailed Description

Move generator test header file.

Date
1998 - 2017
Author
Richard Delorme
Version
4.4

Typedef Documentation

◆ PositionHash

typedef struct PositionHash PositionHash

HashTable of positions

Function Documentation

◆ count_games()

void count_games ( const struct Board ,
const int   
)

◆ count_positions()

void count_positions ( const struct Board ,
const int  ,
const int   
)

◆ count_shapes()

void count_shapes ( const struct Board ,
const int  ,
const int   
)

◆ estimate_games()

void estimate_games ( const struct Board ,
const long  long 
)

◆ positionhash_append()

bool positionhash_append ( PositionHash ,
const struct Board  
)

◆ positionhash_delete()

void positionhash_delete ( PositionHash hash)

Free the hash table.

Parameters
hashHash table.

◆ positionhash_init()

void positionhash_init ( PositionHash hash,
int  bitsize 
)

Initialisation of the hash table.

Parameters
hashHash table.
bitsizeHash table size (as log2(size)).

◆ quick_count_games()

void quick_count_games ( const struct Board ,
const int  ,
const int   
)

◆ seek_highest_mobility()

void seek_highest_mobility ( const struct Board ,
const unsigned long  long 
)

◆ seek_position()

bool seek_position ( const struct Board ,
const struct Board ,
struct Line  
)