mirror of
https://github.com/kuhyx/testsAndMisc.git
synced 2026-07-04 15:03:01 +02:00
17 lines
416 B
C
17 lines
416 B
C
#ifndef SEARCH_H
|
|
#define SEARCH_H
|
|
|
|
#include "movegen.h"
|
|
|
|
typedef struct {
|
|
int depth;
|
|
int nodes;
|
|
} SearchLimits;
|
|
|
|
// 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, int *pv_from, int *pv_to);
|
|
|
|
#endif // SEARCH_H
|