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:
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.