Skip to content

Commit bed4e10

Browse files
committed
clear startpos from grid
1 parent c3a8146 commit bed4e10

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

2024/d06.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ class Lab extends Grid {
1313
constructor(g: string[]) {
1414
super(g);
1515
this.pos = this._parseInitialPos();
16+
this.g[this.pos.x] = this.g[this.pos.x].replace("^", ".");
1617
this.dir = direction.UP;
1718
}
1819
_parseInitialPos() {

0 commit comments

Comments
 (0)