Day 11, part one

This commit is contained in:
Joshua Seigler 2020-12-11 06:18:51 +00:00
parent b30ee5006b
commit d94ca60a36

View file

@ -45,7 +45,7 @@ function step (input) {
return next
}
function stabilize(input) {
function stabilize (input) {
// console.log('\nInput\n--------')
// draw(input)
let rounds = 1; let old; let fresh = input
@ -61,7 +61,7 @@ function stabilize(input) {
async function solveForFirstStar (input) {
const stable = stabilize(input)
const filledSeats = stable.flat(2).filter(x => x=='#').length
const filledSeats = stable.flat(2).filter(x => x == '#').length
report('Solution 1:', filledSeats)
}