aboutsummaryrefslogtreecommitdiffstats
path: root/src/13/part2
blob: e7ccee427aabd4ba3c4bbec682a4bf2bf77b0f56 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
--- Part Two ---

The game didn't run because you didn't put in any quarters. Unfortunately, you did not bring any
quarters. Memory address 0 represents the number of quarters that have been inserted; set it to 2 to
play for free.

The arcade cabinet has a joystick that can move left and right.  The software reads the position of
the joystick with input instructions:


 - If the joystick is in the neutral position, provide 0.

 - If the joystick is tilted to the left, provide -1.

 - If the joystick is tilted to the right, provide 1.


The arcade cabinet also has a segment display capable of showing a single number that represents the
player's current score. When three output instructions specify X=-1, Y=0, the third output
instruction is not a tile; the value instead specifies the new score to show in the segment display.
 For example, a sequence of output values like -1,0,12345 would show 12345 as the player's current
score.

Beat the game by breaking all the blocks. What is your score after the last block is broken?