diff options
author | Tom Smeding <tom.smeding@gmail.com> | 2019-08-08 13:38:09 +0200 |
---|---|---|
committer | Tom Smeding <tom.smeding@gmail.com> | 2019-08-08 13:38:09 +0200 |
commit | 9badf6db10f02bebb3e72af98d8d86ca9aec59a3 (patch) | |
tree | d5f278b5f7d1d339dce0dd13f839d827ed5e2ee0 /main.cpp | |
parent | 363d8ea45c53591bda14c6bd9fa8ddfcd47eb487 (diff) |
Diffstat (limited to 'main.cpp')
-rw-r--r-- | main.cpp | 26 |
1 files changed, 26 insertions, 0 deletions
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 <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 +} |