testsAndMisc/C/lichess_random_engine/search.h

25 lines
481 B
C
Raw Normal View History

#ifndef SEARCH_H
#define SEARCH_H
#include "movegen.h"
2025-11-01 20:11:45 +01:00
typedef struct
{
int depth;
int nodes;
} SearchLimits;
2025-11-01 20:11:45 +01:00
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.
2025-11-01 20:11:45 +01:00
int alphabeta(Position pos, int depth, int alpha, int beta, PrincipalVariation *pv);
#endif // SEARCH_H