Prev: A8B1 Up: Map Next: A8D9
A8CA: Has the game been won?
Called at the end of every turn (from 9611). If the valuable treasure (object 35) is in the wooden chest (object 37, back at Bilbo's home), the game is won: 'a cheering crowd of dwarves, hobbits and elves appear. led by gandalf they carry you off into the sunset, proclaiming you hero of heroes and master adventurer!!!' The score is then printed and the game ends (9049).
A8CA LD A,($C4BD) A = the treasure's holder
A8CD CP $25 Is it the wooden chest (object 37)?
A8CF RET NZ No: the game goes on
A8D0 LD HL,$B2CB "a cheering crowd of dwarves, hobbits and elves appear..."
A8D3 CALL $72D4
A8D6 JP $9049 Print the score and end the game
Prev: A8B1 Up: Map Next: A8D9