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))));