diff --git a/solutions/typescript/2022/22/src/cube-map.class.ts b/solutions/typescript/2022/22/src/cube-map.class.ts index 74b0c1ff9..a6e51d538 100644 --- a/solutions/typescript/2022/22/src/cube-map.class.ts +++ b/solutions/typescript/2022/22/src/cube-map.class.ts @@ -55,6 +55,7 @@ export class CubeMap { from: node, to: neighbouringNode, weight: 0, + direction, }); } else if (neighbouringNode !== alreadyFoundNeighbour.to) { throw new Error('Found a different face for an existing neighbour'); diff --git a/solutions/typescript/2022/22/src/p2.ts b/solutions/typescript/2022/22/src/p2.ts index d14d9a82d..4a530099e 100644 --- a/solutions/typescript/2022/22/src/p2.ts +++ b/solutions/typescript/2022/22/src/p2.ts @@ -78,6 +78,7 @@ export const p2 = (input: string): number => { to, data: reverseDirection.turn(180), weight: from.value === to.value ? 0 : Number.POSITIVE_INFINITY, + direction, }); } }