Day 2: 1202 Program Alarm
Hello, festive Rockstar developers. So… if day 1’s requirement for arithmetic rounding threw a spanner in the works, day 2 has basically emptied a sack of wrenches into the delicate internal workings. And I cheated and peeked ahead at day 3 and that makes things even, um, wrenchier.
Day 2 is based on a fictional Intcode computer, that uses sequences of data and opcodes that look like this:
1,9,10,3,2,3,11,0,99,30,40,50
And in any other language, you’d split the input string on commas to give you an array/list of integers. Except guess what two features were notably absent from Rockstar? That’s right! String splitting, and arrays. In fact, Rockstar didn’t have any type of list or array data structure at all… so check out Adding Arrays to Rockstar for more gory detail than you ever wanted about how to parse and allocate arrays in Satriani.
But here’s the solution - 1202 Program Alarm in Rockstar.
Click here to try it online - and note I’ve already changed the input fields to 12,2 as specified in the challenge.
Tranquility is destination
Serenity is anticipation
History is moonbound adventure
The moon is your fate
Burn the moon
Listen to your heart
Shatter your heart into the sky with the moon
My dream is electronic
Until my dream is as strong as the sky
Cast the sky at my dream
Build my dream up
Sunrise is nowhere
While sunrise is lower than the sky
Let the truth be the sky at sunrise
If the truth is history
Night is quickening
Whisper the sky at night
Give back the truth
Build sunrise up
Let Mercury be the sky at sunrise
Build sunrise up
Let Gemini be the sky at sunrise
Build sunrise up
Let night be the sky at sunrise
Put the sky at Mercury into stories
Put the sky at Gemini into starlight
If the truth is tranquility
Let the sky at night be stories with starlight
if the truth is serenity
Let the sky at night be stories of starlight
Build sunrise up
Part 2
Tranquility is destination
Serenity is anticipation
History is moonbound adventure
The moon is your fate
Burn the moon
Listen to your heart
Navigation takes a wing and a prayer
Shatter your heart into the sky with the moon
My dream is electronic
Until my dream is as strong as the sky
Cast the sky at my dream
Build my dream up
Put a wing into the sky at tranquility
Put a prayer into the sky at serenity
Sunrise is nowhere
While sunrise is lower than the sky
Let the truth be the sky at sunrise
If the truth is history
Night is quickening
Give back the sky at night
Build sunrise up
Let Mercury be the sky at sunrise
Build sunrise up
Let Gemini be the sky at sunrise
Build sunrise up
Let night be the sky at sunrise
Put the sky at Mercury into stories
Put the sky at Gemini into starlight
If the truth is tranquility
Let the sky at night be stories with starlight
if the truth is serenity
Let the sky at night be stories of starlight
Build sunrise up
This is a Christmas puzzle challenge validating prowess of contenders.
Jack Swigert is a photogenic ladykiller
A wing is photogenic
Until a wing is greater than history
A prayer is extralunar
Until a prayer is greater than history
Put navigation taking a wing, and a prayer into Lunar Orbit
if this is Lunar Orbit
Shout a wing of Jack Swigert with a prayer
Give back a wing of Jack Swigert with a prayer
Build a prayer up
Build a wing up