advent of code 2019, problem 13.2

Advent of Code is an advent calendar of small coding problems. Typically, solutions to later problems rely on extending tools you create to solve earlier problems.

This year we have built a virtual computer to run programmes to solve some of the problems.

In problem 13 we are given a computer programme for a game and asked to find the final score when the game ends.

Here is a sample of the start of the programme:

1,380,379,385,1008,2267,610415,381,1005,381,12,99,109,2268,1101,0,0,383,1101,0,0,382,20102,1,382,1,20101,0,383,2,21101,37,0,0,1106,0,578,4,382,4,383,204,1,...

The programme can be run and the score read from the output.

But to make this more interesting I created a “computer screen” to show the game running.

Leave a Reply

%d bloggers like this: