aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/ct1986.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/ct1986.c b/include/ct1986.c
index 88cba26..1d1d253 100644
--- a/include/ct1986.c
+++ b/include/ct1986.c
@@ -41,7 +41,7 @@ ct1986_evaluate_black_win(void) {
for (uint8_t kx = 0; kx < KERN_SIZE; kx++) {
for (uint8_t c = 0; c < KERN_CHAN; c++) {
// Where we are on the board
- const uint8_t loc = kx+by+(ky+bx)*board_size;
+ const uint8_t loc = kx+by+(ky+bx)*5;
// Look up what's on the board at this location, and
// multiply it. For c=0 we have to do some extra work
float lookup = 0;
@@ -129,7 +129,7 @@ static enum WIN_TYPE w;
#define WIN_EVALUATE_OR_RECURSE(store) { \
w = 0xFF; \
- if (ply >= 2*board_size - 2) w = check_win(); \
+ if (ply >= 2*5 - 2) w = check_win(); \
if (w < 0xFF) { \
/* Somebody won, assign weights accordingly */ \
if (min == 0) { \