From 6175cb1c53772cc92d91a39a254c38bdf8f64905 Mon Sep 17 00:00:00 2001 From: Tom Smeding Date: Wed, 13 Feb 2019 21:08:37 +0100 Subject: Initial: working monte carlo AI --- params.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 params.h (limited to 'params.h') diff --git a/params.h b/params.h new file mode 100644 index 0000000..c9413b6 --- /dev/null +++ b/params.h @@ -0,0 +1,17 @@ +#pragma once + + +// number of stones of 1 colour +#define N 26 + +// number of colours +#define NC 2 + +// winning row length +#define RLEN 5 + +// board size; this leaves 4 / 2 = 2 spaces around the board at all times +#define BSZ (2 * N * NC - 1 + 4) + +// board middle, coords of first stone +#define BMID (BSZ / 2) -- cgit v1.2.3-70-g09d2