Update 2023/Day2/part2.js

This commit is contained in:
x0x7 2024-11-30 00:20:21 -05:00
parent 7c0f5d9652
commit cd4f7ed1bb
1 changed files with 2 additions and 0 deletions

View File

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