Skip to content

Commit 92b8248

Browse files
committed
chore: update comment
1 parent adb9f66 commit 92b8248

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/2024/2024-12-10/lib/scoresRatings.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,12 @@ const findPaths = (pointVector: PointDirection, data: number[][], isRating: bool
3131
if (step === undefined) continue
3232
const pt = getCoordinateSymbol(step, data)
3333

34-
// Count unique ending 9's that match with the starting 0
3534
if (pt.symbol === 9) {
3635
if (isRating) {
36+
// Rating: count all trails ending in 9's
3737
scores[activeZeroIndex]?.push(pt.coordinate)
3838
} else {
39+
// Scores: count unique ending 9's that match with the starting 0
3940
if (!scores[activeZeroIndex]!.includes(pt.coordinate)) {
4041
scores[activeZeroIndex]?.push(pt.coordinate)
4142
}

0 commit comments

Comments
 (0)