If you like this kind of thing, try to find copies of books by Dave Ahl - see http://en.wikipedia.org/wiki/BASIC_Computer_Games
I like this kind of thing and I have both books. A family friend CP/M system was by first gaming experience and I played all of them. The Star Trek here exists in a sort of copyright limbo, CBS obviously didn't license it but it was too popular to squash. I remember seeing ports of this to Amiga, Palm Pilot and Windows CE over the years.
Colossal Cave is a contemporary - it wasn't distributed as source (to my recollection... compiled OBASIC.COM IIRC?) so it isn't in the books but it was my favourite.