diff options
author | eug-vs <eugene@eug-vs.xyz> | 2022-08-18 13:54:10 +0300 |
---|---|---|
committer | eug-vs <eugene@eug-vs.xyz> | 2022-08-18 13:54:10 +0300 |
commit | b154f44c84252682472a9faf54b51d3abe970ffd (patch) | |
tree | 0d081a71e52c0029fd3192ab80abdb122dbc6413 /src/main.c | |
parent | a8d84eca19819b0c49a35009ce1b6e0c85406b48 (diff) | |
download | c-chess-b154f44c84252682472a9faf54b51d3abe970ffd.tar.gz |
feat: allow to play both sides
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -480,13 +480,13 @@ int main() { int color = WHITE; while (1) { - if (color == BLACK) { + if (color == PLAYER) { printf("Current score is %i\n", compute_score(board)); printf("White coverage: %i, black coverage: %i\n", compute_coverage(board, WHITE), compute_coverage(board, BLACK)); printf("Enter a move for %s:\n", COLORS[color]); input_move(move); } else { - printf("Evaluating move for black...\n"); + printf("Evaluating move for %s...\n", COLORS[color]); clock_t start, end; int metrics = 0; start = clock(); |