blob: 0a9c2d2cc1efe68b4a979c68554cac238aea3249 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#define USE_PN_SEARCH
#include <array>
#include <memory>
#include <cstdio>
#include <cstdlib>
#include "board.h"
#ifdef USE_PN_SEARCH
#include "pnsearch.h"
#else
#include "minimax.h"
#endif
using namespace std;
int main(void) {
Board B = Board::empty();
#ifdef USE_PN_SEARCH
printf("%d\n", pnsearch(B));
#else
printf("%d\n", minimax<0>(B, -MINIMAX_LARGE, MINIMAX_LARGE, 64));
#endif
}
|