From 35814b11876741cfa963f91778093d51c73e2a7e Mon Sep 17 00:00:00 2001 From: yy214123 Date: Tue, 8 Apr 2025 11:44:59 +0800 Subject: [PATCH] Fix incorrect comments MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Correct ROW and COL labels in comments to match standard definitions—column as vertical and row as horizontal. This change improves code clarity and prevents potential confusion when interpreting line direction logic. --- game.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/game.c b/game.c index 0302edd..a78330a 100644 --- a/game.c +++ b/game.c @@ -19,8 +19,8 @@ _Static_assert(ALLOW_EXCEED == 0 || ALLOW_EXCEED == 1, "ALLOW_EXCEED must be a boolean that is 0 or 1"); const line_t lines[4] = { - {1, 0, 0, 0, BOARD_SIZE - GOAL + 1, BOARD_SIZE}, // ROW - {0, 1, 0, 0, BOARD_SIZE, BOARD_SIZE - GOAL + 1}, // COL + {1, 0, 0, 0, BOARD_SIZE - GOAL + 1, BOARD_SIZE}, // COL + {0, 1, 0, 0, BOARD_SIZE, BOARD_SIZE - GOAL + 1}, // ROW {1, 1, 0, 0, BOARD_SIZE - GOAL + 1, BOARD_SIZE - GOAL + 1}, // PRIMARY {1, -1, 0, GOAL - 1, BOARD_SIZE - GOAL + 1, BOARD_SIZE}, // SECONDARY };