From cd4f7ed1bb0520d5bc5208ce9655be31a8598d62 Mon Sep 17 00:00:00 2001 From: x0x7 Date: Sat, 30 Nov 2024 00:20:21 -0500 Subject: [PATCH] Update 2023/Day2/part2.js --- 2023/Day2/part2.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/2023/Day2/part2.js b/2023/Day2/part2.js index 26d56d2..bb84651 100644 --- a/2023/Day2/part2.js +++ b/2023/Day2/part2.js @@ -1,5 +1,7 @@ #!/usr/bin/env node +/* For https://goatmatrix.net/c/AdventOfCode/F9VPZJnJR6 */ + var fs = require('fs'); var games = fs.readFileSync('input.txt','utf8').split('\n').filter(i=>i).map(i=>i.split(':').pop()).map(i=>i.split(';')).map(i=>i.map(i=>i.split(','))).map(i=>i.map(i=>i.map(i=>i.split(' ').filter(i=>i))));