The player is object 0, with a record in
OBJECT_INDEX laid out like
anyone else's -- size, what it carries, strength, defence, sides, flags -- and
the same code moves it, fights for it and tells what it does. Like the other
objects it can carry handlers of its own, and it has two: EAT, the ordinary
one (
DO_EAT), and after it
PLAYER_DIES. So the player is
edible: anyone who manages to EAT it gains the strength food gives and takes it
out of the world, and the second handler ends the game. The trolls do not go
through it --
TROLLS_EAT calls the same eating and then the death
itself -- but the record is ready for anyone who does. (Read from the record
and the routines.)