From Wikipedia
The Hitchhiker's Guide to the Galaxy is an interactive fiction computer game based on the comedic science fiction series of the same name. It was designed by series creator Douglas Adams and Infocom's Steve Meretzky, and was first released in 1984 for the Apple II, Macintosh, Commodore 64, Amiga, Atari 8-bit, Atari ST and the IBM PC. It is Infocom's fourteenth game.
The game loosely mirrors a portion of the series' plot, beginning with the impending destruction of Arthur Dent's house and subsequent demolition of the Earth by Vogons.