diff options
author | Tom Smeding <tom.smeding@gmail.com> | 2019-02-13 21:08:37 +0100 |
---|---|---|
committer | Tom Smeding <tom.smeding@gmail.com> | 2019-02-13 21:08:37 +0100 |
commit | 6175cb1c53772cc92d91a39a254c38bdf8f64905 (patch) | |
tree | 3a7dd5f8810d0c859faaf5ab985afc51841899a8 /params.h |
Initial: working monte carlo AI
Diffstat (limited to 'params.h')
-rw-r--r-- | params.h | 17 |
1 files changed, 17 insertions, 0 deletions
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) |