Early video games were text games. They would say something like, "You see a rabbit," then you would type something like "chase rabbit," "kill rabbit," etc.
Your answers to questions would take you down branches predetermined by the programmer. I can't, for the life of me, remember the name for the branching quality of these and later games.