diff options
| author | tslil <tslil@posteo.de> | 2021-01-12 21:42:35 -0500 |
|---|---|---|
| committer | tslil <tslil@posteo.de> | 2026-08-28 19:37:41 +0100 |
| commit | 4ad67ac92de26b12cbf6cd671de689e7d11ebebb (patch) | |
| tree | 49ced293e408b4cdf2ba389f019cfe4d131a5070 /src/ctaklm.c | |
| parent | f33d6fc3b09ade5b57b9438b54519e36e4261362 (diff) | |
Well it works, and it's bad. Many bugs fixed in interim
Diffstat (limited to 'src/ctaklm.c')
| -rw-r--r-- | src/ctaklm.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ctaklm.c b/src/ctaklm.c index 87fc30f..13326f9 100644 --- a/src/ctaklm.c +++ b/src/ctaklm.c @@ -60,7 +60,8 @@ print_cell_line(const uint8_t line, } } if (idx < stack_size) { - put_stone(STONE_AT(location), colours[location] & (1 << idx), + put_stone(STONE_AT(location), + (colours[location] & (1 << idx)) ? C_BLACK : C_WHITE, idx == 0, idx >= board_size); } else { putchar(' '); @@ -125,7 +126,7 @@ print_square(const uint8_t col, const uint8_t row) { uint8_t mask = 1 << (stack_size - 1); for (uint8_t k = 0; k < stack_size; k++, mask >>= 1) { put_stone(STONE_AT(THE_COORDS(col, row)), - colours[THE_COORDS(col, row)] & mask, + (colours[THE_COORDS(col, row)] & mask) ? C_BLACK : C_WHITE, k+1 == stack_size, stack_size-k >= board_size); } |
