From 9badf6db10f02bebb3e72af98d8d86ca9aec59a3 Mon Sep 17 00:00:00 2001 From: Tom Smeding Date: Thu, 8 Aug 2019 13:38:09 +0200 Subject: C++; experimenting with pn-search --- main.cpp | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 main.cpp (limited to 'main.cpp') diff --git a/main.cpp b/main.cpp new file mode 100644 index 0000000..0a9c2d2 --- /dev/null +++ b/main.cpp @@ -0,0 +1,26 @@ +#define USE_PN_SEARCH + +#include +#include +#include +#include +#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 +} -- cgit v1.2.3-70-g09d2