Skip to content

Commit cf37da8

Browse files
committed
Fix incorrect comments
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.
1 parent 61ee712 commit cf37da8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

game.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55

66
const line_t lines[4] = {
7-
{1, 0, 0, 0, BOARD_SIZE - GOAL + 1, BOARD_SIZE}, // ROW
8-
{0, 1, 0, 0, BOARD_SIZE, BOARD_SIZE - GOAL + 1}, // COL
7+
{1, 0, 0, 0, BOARD_SIZE - GOAL + 1, BOARD_SIZE}, // COL
8+
{0, 1, 0, 0, BOARD_SIZE, BOARD_SIZE - GOAL + 1}, // ROW
99
{1, 1, 0, 0, BOARD_SIZE - GOAL + 1, BOARD_SIZE - GOAL + 1}, // PRIMARY
1010
{1, -1, 0, GOAL - 1, BOARD_SIZE - GOAL + 1, BOARD_SIZE}, // SECONDARY
1111
};

0 commit comments

Comments
 (0)