Skip to content

Commit

Permalink
fix: 亀の初期状態をスライドに合わせる (#94)
Browse files Browse the repository at this point in the history
* change the origin to the bottom left

* set initial state to bottom left
  • Loading branch information
hishiwat authored Sep 11, 2024
1 parent 188769e commit 8fbc7d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/problems/traceProgram.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 8fbc7d6

Please sign in to comment.