testsAndMisc-archive/C/lichess_random_engine/search.h
Krzysztof kuhy Rudnicki 5966821bad fix: correct shebang and executable permissions
- Add +x to Python scripts with shebangs (3 files)
- Remove -x from non-script files like .cpp, .txt, makefile (23 files)
- Move shebang to first line in C/imageViewer/lint.sh
2025-11-30 13:42:16 +01:00

25 lines
481 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