diff options
| author | tslil clingman <tslil@posteo.de> | 2021-01-17 21:06:04 -0500 |
|---|---|---|
| committer | tslil <tslil@posteo.de> | 2026-08-28 19:37:41 +0100 |
| commit | 8915093ce1ed103cc52481118e1ab47bec663236 (patch) | |
| tree | 31364afb829258d83688e95e02b17fbcda0cf918 /include | |
| parent | e2530bfb517b7a0dc0a9d3b6c7e3d074258b1405 (diff) | |
Revert "Starting work on MCU port"
This reverts commit 43eec01361eb6174142180c29afef960e041514e.
Diffstat (limited to 'include')
| -rw-r--r-- | include/ct1986.c | 4 |
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) { \ |
