diff options
author | eug-vs <eugene@eug-vs.xyz> | 2022-04-01 01:33:15 +0300 |
---|---|---|
committer | eug-vs <eugene@eug-vs.xyz> | 2022-04-01 01:33:15 +0300 |
commit | 5e2c184ffb48944835945c9935e4d7e7a3b1ea1e (patch) | |
tree | a2392cabbc268627d50ce6aa13fecba5fa6a40a9 | |
parent | 87877154fa2386dc99aa21389144aa2debec656a (diff) | |
download | carcassonne-engine-c-5e2c184ffb48944835945c9935e4d7e7a3b1ea1e.tar.gz |
feat: always place initial tile in center
-rw-r--r-- | src/board.h | 2 | ||||
-rw-r--r-- | src/main.c | 2 |
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 @@ -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; |