advent15_capsules.js
/*
--- Part Two ---

After getting the first capsule (it contained a star! what great fortune!), 
the machine detects your success and begins to rearrange itself.

When it's done, the discs are back in their original configuration as if it 
were time=0 again, but a new disc with 11 positions and starting at 
position 0 has appeared exactly one second below the previously-bottom disc.

With this new disc, and counting again starting from time=0 with the 
configuration in your puzzle input, what is the first time you can press 
the button to get another capsule?
*/
Part Two
After getting the first capsule (it contained a star. what great fortune!),
the machine detects your success and begins to rearrange itself.

When it's done, the discs are back in their original configuration as if it
were time=0 again, but a new disc with 11 positions and starting at
position 0 has appeared exactly one second below the previously-bottom disc.


Part Two After getting the first capsule ( it contained a star . what great fortune! ) the machine detects your success and begins to rearrange itself . When it ' s done the discs are back in their original configuration as if it were time = 0 again but a new disc with 11 positions and starting at position 0 has appeared exactly one second below the previously - bottom disc .
function doPartTwo() {
    var partTwoDiscFactory = () => puzzleInputDiscFactory().concat([new Disc(11, 0)]);
    var numSecondsToWait = findEarliestButtonPushTime(partTwoDiscFactory);
    console.log(numSecondsToWait);
}
function doPartTwo ( ) { var partTwoDiscFactory = ( ) => puzzleInputDiscFactory ( ) . concat ( [ new Disc ( 11 , 0 ) ] ) ; var numSecondsToWait = findEarliestButtonPushTime ( partTwoDiscFactory ) ; console . log ( numSecondsToWait ) ; }
Part Two
After getting the first capsule (it contained a star!
Part Two After getting the first capsule ( it contained a star!