mirror of
https://github.com/kuhyx/testsAndMisc-archive.git
synced 2026-07-04 15:23:06 +02:00
- 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
25 lines
481 B
C
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
|