From 5e2c184ffb48944835945c9935e4d7e7a3b1ea1e Mon Sep 17 00:00:00 2001 From: eug-vs Date: Fri, 1 Apr 2022 01:33:15 +0300 Subject: feat: always place initial tile in center --- src/board.h | 2 +- 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 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; -- cgit v1.2.3