add pvs(), aka Principal Variation Search

This commit is contained in:
2023-07-11 22:18:41 +02:00
parent af1f5db507
commit 9932a64c97
6 changed files with 435 additions and 29 deletions

View File

@@ -14,12 +14,9 @@
#ifndef SEARCH_H
#define SEARCH_H
#include <limits.h>
#include "position.h"
#define EVAL_MIN INT_MIN
#define EVAL_MAX INT_MAX
eval_t negamax(pos_t *pos, int depth, int color);
eval_t pvs(pos_t *pos, int depth, int alpha, int beta, int color);
#endif /* SEARCH_H */