aboutsummaryrefslogtreecommitdiff
path: root/src/board.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/board.c')
-rw-r--r--src/board.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/board.c b/src/board.c
index 056156c..a09b45c 100644
--- a/src/board.c
+++ b/src/board.c
@@ -30,15 +30,8 @@ int is_allowed_placement(Tile tile, int index, BoardUnit* board) {
}
int place_tile(Tile tile, int index, BoardUnit* board, int force) {
- if (!is_center_index(index)) {
- printf("Not a valid tile index: %i\n", index);
- return 0;
- }
-
- if (!force && !is_allowed_placement(tile, index, board)) {
- printf("Can not place tile %s (%c)\n", tile.edges, tile.center);
- return 0;
- }
+ if (!is_center_index(index)) return 0;
+ if (!force && !is_allowed_placement(tile, index, board)) return 0;
board[index].feature = tile.center;
for (int i = 0; i < 4; i++) {