testsAndMisc/C/lichess_random_engine/search.h

24 lines
480 B
C

#ifndef SEARCH_H
#define SEARCH_H
#include "movegen.h"
typedef struct
{
int depth;
int nodes;
} SearchLimits;
typedef struct
{
int from;
int to;
} PrincipalVariation;
// Evaluate position in centipawns from the side-to-move perspective.
int evaluate(const Position *pos);
// Negamax alpha-beta returning score in centipawns from side-to-move perspective.
int alphabeta(Position pos, int depth, int alpha, int beta, PrincipalVariation *pv);
#endif // SEARCH_H