diff options
author | eug-vs <eugene@eug-vs.xyz> | 2022-04-10 21:19:09 +0300 |
---|---|---|
committer | eug-vs <eugene@eug-vs.xyz> | 2022-04-10 21:19:09 +0300 |
commit | 5f583e476f3f711a581f417319670ee401a716c4 (patch) | |
tree | 18343ba76c1526d9c26e24452ccc68cdf53c2a1a /src/board.c | |
parent | 6c88febbe0cff8960bc6f2e0bcdfc89777a5f72b (diff) | |
download | carcassonne-engine-c-5f583e476f3f711a581f417319670ee401a716c4.tar.gz |
feat: add meeple placement
Diffstat (limited to 'src/board.c')
-rw-r--r-- | src/board.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/board.c b/src/board.c index cc16e06..0e66f16 100644 --- a/src/board.c +++ b/src/board.c @@ -94,7 +94,6 @@ int evaluate_structure(int index, BoardUnit* board) { char feature = board[index].feature; int structure_group = board[index].structure_group; - printf("Evaluating group %i (%c)\n", structure_group, feature); for (int i = 0; i < BOARD_WIDTH; i++) { for (int j = 0; j < BOARD_WIDTH; j++) { @@ -102,7 +101,6 @@ int evaluate_structure(int index, BoardUnit* board) { if (board[index].feature != EMPTY) { // Empty tiles doesn't count for (int k = 0; k < 4; k++) { if (board[index + NEIGHBOR_INCREMENTS[k]].structure_group == structure_group) { - printf("Found at tile %i\n", i * BOARD_WIDTH + j); value++; break; } @@ -111,6 +109,5 @@ int evaluate_structure(int index, BoardUnit* board) { } } - printf("Value: %i\n", value); return value; } |