diff --git a/src/problems/traceProgram.ts b/src/problems/traceProgram.ts index 633c0192..bc20d66f 100644 --- a/src/problems/traceProgram.ts +++ b/src/problems/traceProgram.ts @@ -121,7 +121,7 @@ const dx = [0, 1, 0, -1]; const dy = [1, 0, -1, 0]; const board = Array.from({ length: ${GRID_ROWS} }, () => Array.from({ length: ${GRID_COLUMNS} }, () => '${EMPTY_COLOR}')); class Character { - constructor(x = ${Math.floor(GRID_COLUMNS / 2)}, y = ${Math.floor(GRID_ROWS / 2)}, color = '${DEFAULT_COLOR}') { + constructor(x = 0, y = 0, color = '${DEFAULT_COLOR}') { this.x = x; this.y = y; this.color = color;