aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreug-vs <eugene@eug-vs.xyz>2022-04-01 01:33:15 +0300
committereug-vs <eugene@eug-vs.xyz>2022-04-01 01:33:15 +0300
commit5e2c184ffb48944835945c9935e4d7e7a3b1ea1e (patch)
treea2392cabbc268627d50ce6aa13fecba5fa6a40a9
parent87877154fa2386dc99aa21389144aa2debec656a (diff)
downloadcarcassonne-engine-c-5e2c184ffb48944835945c9935e4d7e7a3b1ea1e.tar.gz
feat: always place initial tile in center
-rw-r--r--src/board.h2
-rw-r--r--src/main.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/board.h b/src/board.h
index 9745e3a..4a8c4e8 100644
--- a/src/board.h
+++ b/src/board.h
@@ -1,4 +1,4 @@
-#define BOARD_WIDTH 7
+#define BOARD_WIDTH 9
#define BOARD_ROW_UNITS ((BOARD_WIDTH * 2) + 1)
#define BOARD_UNITS BOARD_ROW_UNITS * BOARD_ROW_UNITS
diff --git a/src/main.c b/src/main.c
index d3e17b2..954988c 100644
--- a/src/main.c
+++ b/src/main.c
@@ -69,7 +69,7 @@ int main() {
};
Tile tile = { "FRCR", 'R', 0 };
- place_tile(tile, translate_coordinate(24), board, 1);
+ place_tile(tile, translate_coordinate(BOARD_WIDTH * BOARD_WIDTH / 2), board, 1);
/* main loop */
char input_key;